function hook_rules_config_insert in Rules 7.2
Respond to creation of a new rules configuration.
This hook is invoked after the rules configuration is inserted into the the database.
Parameters
RulesPlugin $config: The rules configuration that is being created.
Related topics
1 function implements hook_rules_config_insert()
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_insert in rules_i18n/
rules_i18n.module - Implements hook_rules_config_insert().
File
- ./
rules.api.php, line 785 - Documentation for hooks provided by the Rules API.
Code
function hook_rules_config_insert($config) {
db_insert('mytable')
->fields(array(
'nid' => $config->id,
'plugin' => $config->plugin,
))
->execute();
}