function oa_notifications_is_overriding in Open Atrium Notifications 7.2
Returns whether or a node is overriding default notifications or not.
Parameters
string $entity_type: Entity type to check
int $entity_id: Entity ID to check.
Return value
int Whether or not it's overriding. Default is not overriding.
2 calls to oa_notifications_is_overriding()
- oa_notifications_form_fields in ./
oa_notifications.module - Define the fields that are used for configuring notifications.
- oa_notifications_get_default_notifications in ./
oa_notifications.module - Gets a piece of section content's default notifications.
File
- ./
oa_notifications.module, line 1064
Code
function oa_notifications_is_overriding($entity_type, $entity_id) {
$override = db_select('oa_notifications_override', 'oa_no')
->fields('oa_no')
->condition('entity_type', $entity_type)
->condition('entity_id', $entity_id)
->execute()
->fetch();
return $override ? $override->override : 0;
}