You are here

function _oa_notifications_allow_edit in Open Atrium Notifications 7.2

Helper function to determine if notifications can be added to page

Parameters

$node:

Return value

bool

1 call to _oa_notifications_allow_edit()
oa_notifications_build_list_form in ./oa_notifications.module

File

./oa_notifications.module, line 699

Code

function _oa_notifications_allow_edit($node) {
  if (arg(0) == 'node' && (arg(2) == 'edit' || arg(1) == 'add')) {
    return TRUE;
  }
  else {
    return empty($node->nid) || _oa_notifications_can_comment($node);
  }
}