function oa_notifications_process_remove in Open Atrium Notifications 7.2
Remove any notifications added by javascript
Parameters
$notifications:
$form_state:
2 calls to oa_notifications_process_remove()
- oa_notifications_form_fields in ./
oa_notifications.module - Define the fields that are used for configuring notifications.
- 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 847
Code
function oa_notifications_process_remove(&$notifications, &$form_state) {
if (!empty($form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_remove'])) {
oa_notification_parse($form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_remove'], '', 0, $notifications);
$form_state['input'][OA_NOTIFY_FORM]['notify_list']['notification_remove'] = '';
$form_state['storage']['notification_data'] = $notifications;
}
}