You are here

function hook_rules_link_delete in Rules Link 7

Same name and namespace in other branches
  1. 7.2 rules_link.api.php \hook_rules_link_delete()

Responds to rules link deletion.

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

Parameters

RulesLink $rules_link: The rules link that is being deleted.

See also

hook_entity_delete()

2 functions implement hook_rules_link_delete()

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

rules_link_i18n_rules_link_delete in ./rules_link_i18n.module
Implements hook_rules_link_delete().
rules_link_rules_link_delete in ./rules_link.module
Implements hook_rules_link_delete().

File

./rules_link.api.php, line 90
Hooks provided by this module.

Code

function hook_rules_link_delete(RulesLink $rules_link) {
  db_delete('mytable')
    ->condition('pid', entity_id('rules_link', $rules_link))
    ->execute();
}