function hook_rules_link_insert in Rules Link 7
Same name and namespace in other branches
- 7.2 rules_link.api.php \hook_rules_link_insert()
Responds when a rules link is inserted.
This hook is invoked after the rules link is inserted into the database.
Parameters
RulesLink $rules_link: The rules link that is being inserted.
See also
2 functions implement hook_rules_link_insert()
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_insert in ./
rules_link_i18n.module - Implements hook_rules_link_insert().
- rules_link_rules_link_insert in ./
rules_link.module - Implements hook_rules_link_insert().
File
- ./
rules_link.api.php, line 40 - Hooks provided by this module.
Code
function hook_rules_link_insert(RulesLink $rules_link) {
db_insert('mytable')
->fields(array(
'id' => entity_id('rules_link', $rules_link),
'extra' => print_r($rules_link, TRUE),
))
->execute();
}