You are here

function heartbeat_messages_delete in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 heartbeat.admin.inc \heartbeat_messages_delete()

Function to delete a heartbeat message

1 call to heartbeat_messages_delete()
heartbeat_delete_confirm_submit in ./heartbeat.admin.inc
Handler for revert confirmation

File

./heartbeat.admin.inc, line 1298
Admnistration tasks for heartbeat.

Code

function heartbeat_messages_delete($hid) {
  global $base_url;
  $result = db_query("DELETE FROM {heartbeat_messages} WHERE hid = %d", $hid);
  drupal_set_message(t('Message deleted'));
}