public function HeartbeatMessageTemplate::delete in Heartbeat 7
delete().
Function to delete the template from database.
File
- includes/
heartbeatmessagetemplate.inc, line 180 - HeartbeatMessageTemplate Template object that holds configuration for a message template. A HeartbeatActivity object will be able to have the template as composite.
Class
- HeartbeatMessageTemplate
- Class HeartbeatMessageTemplate
Code
public function delete() {
return db_delete('heartbeat_messages')
->condition('message_id', $this->message_id)
->execute();
}