You are here

function oa_notifications_form_fields_override_ajax in Open Atrium Notifications 7.2

AJAX callback for oa_notifications_form_fields override checkbox.

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

File

./oa_notifications.module, line 786

Code

function oa_notifications_form_fields_override_ajax($form, &$form_state) {
  $notifications = $form_state['storage']['notification_data'];
  $form[OA_NOTIFY_FORM]['notify_list']['data'] = oa_notifications_render_view($form['#node'], true, $notifications);
  return $form[OA_NOTIFY_FORM]['notify_list'];
}