You are here

function _oa_notifications_session_detail in Open Atrium Notifications 7.2

2 calls to _oa_notifications_session_detail()
oa_notifications_render_view in ./oa_notifications.module
Render the read only version of the notifications listing.
oa_notification_render_details in ./oa_notifications.module

File

./oa_notifications.module, line 1158

Code

function _oa_notifications_session_detail($value = NULL) {
  $result = false;
  if (isset($_SESSION)) {
    if (!is_null($value)) {
      if (empty($value)) {
        unset($_SESSION[DETAIL_FLAG]);
      }
      else {
        $_SESSION[DETAIL_FLAG] = $value;
      }
    }
    $result = !empty($_SESSION[DETAIL_FLAG]);
  }
  return $result;
}