You are here

function hook_rules_link_update in Rules Link 7

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

Responds to a rules link being updated.

This hook is invoked after the rules link has been updated in the database.

Parameters

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

See also

hook_entity_update()

2 functions implement hook_rules_link_update()

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_update in ./rules_link_i18n.module
Implements hook_rules_link_update().
rules_link_rules_link_update in ./rules_link.module
Implements hook_rules_link_update().

File

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

Code

function hook_rules_link_update(RulesLink $rules_link) {
  db_update('mytable')
    ->fields(array(
    'extra' => print_r($rules_link, TRUE),
  ))
    ->condition('id', entity_id('rules_link', $rules_link))
    ->execute();
}