function heartbeat_message_template_delete in Heartbeat 7
Function to delete heartbeat message templates.
Parameters
$id Int/String The target value to delete on:
$type String The key field to perform delete query on: message : default module : only defined by that module
1 string reference to 'heartbeat_message_template_delete'
- heartbeat_schema in ./
heartbeat.install - Implementation of hook_schema().
File
- ./
heartbeat.module, line 1106 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function heartbeat_message_template_delete(HeartbeatMessageTemplate $template) {
$template
->delete();
field_attach_delete_bundle('heartbeat_activity_template', $template->message_id);
entity_get_controller('heartbeat_activity_template')
->resetCache();
cache_clear_all();
}