function _rules_admin_install_example_rule_sets in Rules 6
2 calls to _rules_admin_install_example_rule_sets()
- rules_admin_install in rules_admin/
rules_admin.install - Implementation of hook_install().
- rules_admin_update_6001 in rules_admin/
rules_admin.install - Update 6001 Example rules are now added by hook_install() instead of using default rules.
File
- rules_admin/
rules_admin.install, line 56 - Rules Admin UI - Installation file.
Code
function _rules_admin_install_example_rule_sets() {
$set = array(
'label' => t('Example: Empty rule set working with content'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => 'Content',
),
),
'categories' => array(
'example',
),
'status' => 'custom',
);
rules_item_save('rule_sets', 'rules_set_1', $set);
}