You are here

function oa_notifications_process_add in Open Atrium Notifications 7.2

Adds any notifications added by javascript

Parameters

$notifications:

$form_state:

1 call to oa_notifications_process_add()
oa_notifications_form_submit in ./oa_notifications.module
Submit handler for node edit form to save notification values Only executes on node ADD form (new nodes)

File

./oa_notifications.module, line 861

Code

function oa_notifications_process_add(&$notifications, &$form_state) {
  if (!empty($form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_add'])) {
    oa_notification_parse($form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_add'], 'node', 0, $notifications);
    $form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_add'] = '';
    $form_state['storage']['notification_data'] = $notifications;
  }
}