You are here

function heartbeat_messages_uninstall in Heartbeat 6.2

Same name and namespace in other branches
  1. 6.4 heartbeat.module \heartbeat_messages_uninstall()
  2. 6.3 heartbeat.module \heartbeat_messages_uninstall()

Function to uninstall default records

2 calls to heartbeat_messages_uninstall()
friendlist_activity_disable in user_activity/modules/friendlist_activity/friendlist_activity.install
Implementation of hook_disable().
user_activity_disable in user_activity/user_activity.install
Implementation of hook_disable Uninstall basic variables

File

./heartbeat.module, line 454
To fully understand this, you have to be familiar with the rules module. Lots of documentation can be found on http://drupal.org/node/298480 for an introduction and tutorial, but http://drupal.org/node/298486 is a lot of handy info for developers.

Code

function heartbeat_messages_uninstall($module) {
  db_query("DELETE FROM {heartbeat_messages} WHERE module = '%s'", $module);
}