You are here

function heartbeat_plugins_delete in Heartbeat 7

CTools delete callback for plugins.

1 string reference to 'heartbeat_plugins_delete'
heartbeat_plugins_schema in modules/heartbeat_plugins/heartbeat_plugins.install
Implements hook_schema().

File

modules/heartbeat_plugins/heartbeat_plugins.module, line 125

Code

function heartbeat_plugins_delete($plugin) {
  db_delete('heartbeat_plugins')
    ->condition('plugin_name', $plugin->plugin_name)
    ->execute();

  // Clear the cache for heartbeat plugins.
  cache_clear_all('heartbeat_plugins', 'cache');
}