You are here

function oa_notification_render_details in Open Atrium Notifications 7.2

1 call to oa_notification_render_details()
oa_notifications_details_callback in ./oa_notifications.module
Node add modal callback.

File

./oa_notifications.module, line 907

Code

function oa_notification_render_details(&$form, $form_state) {
  $notifications = NULL;
  if (empty($form['#node']->nid) || isset($form[OA_NOTIFY_FORM]['override'])) {
    $notifications = $form_state['storage']['notification_data'];
  }
  $node = isset($form['#node']) ? $form['#node'] : NULL;
  $show_detail = _oa_notifications_session_detail();
  $data = oa_notifications_render_view($node, FALSE, $notifications, !$show_detail);
  return drupal_render($data);
}