You are here

function oa_notifications_skip_ajax_callback in Open Atrium Notifications 7.2

Callback for AJAX saving of the skip-notification option.

1 string reference to 'oa_notifications_skip_ajax_callback'
oa_notifications_form_fields in ./oa_notifications.module
Define the fields that are used for configuring notifications.

File

./oa_notifications.module, line 533

Code

function oa_notifications_skip_ajax_callback($form, $form_state) {
  if (isset($form_state['values'][OA_NOTIFY_FORM]['skip_notify'])) {
    oa_notification_skip($form_state['values'][OA_NOTIFY_FORM]['skip_notify']);
    $form[OA_NOTIFY_FORM]['skip_notify']['#value'] = oa_notification_skip();
  }
  return $form[OA_NOTIFY_FORM]['skip_notify'];
}