You are here

function hook_rules_config_delete in Rules 7.2

Respond to rules configuration deletion.

This hook is invoked after the configuration has been removed from the database.

Parameters

RulesPlugin $config: The rules configuration that is being deleted.

Related topics

2 functions implement hook_rules_config_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

rules_i18n_rules_config_delete in rules_i18n/rules_i18n.module
Implements hook_rules_config_delete().
rules_scheduler_rules_config_delete in rules_scheduler/rules_scheduler.module
Implements hook_rules_config_delete().

File

./rules.api.php, line 835
Documentation for hooks provided by the Rules API.

Code

function hook_rules_config_delete($config) {
  db_delete('mytable')
    ->condition('id', $config->id)
    ->execute();
}