function oa_notifications_save_override in Open Atrium Notifications 7.2
Saves an entity's override settings.
Parameters
string $entity_type: The entity type.
int $entity_id: The entity id.
mixed $override: Whether or not they're overriding. Bool or int.
2 calls to oa_notifications_save_override()
- oa_notifications_form_fields in ./
oa_notifications.module - Define the fields that are used for configuring notifications.
- oa_notifications_save_notifications in ./
oa_notifications.module - Saves notifications.
File
- ./
oa_notifications.module, line 1084
Code
function oa_notifications_save_override($entity_type, $entity_id, $override) {
db_merge('oa_notifications_override')
->key(array(
'entity_type' => $entity_type,
'entity_id' => $entity_id,
))
->fields(array(
'entity_type' => $entity_type,
'entity_id' => $entity_id,
'override' => $override ? 1 : 0,
))
->execute();
}