function rules_scheduler_rules_ui_menu_alter
Implements hook_rules_ui_menu_alter().
Adds a menu item for the 'schedule' operation.
File
-
rules_scheduler/
rules_scheduler.module, line 83
Code
function rules_scheduler_rules_ui_menu_alter(&$items, $base_path, $base_count) {
$items[$base_path . '/manage/%rules_config/schedule'] = array(
'title callback' => 'rules_get_title',
'title arguments' => array(
'Schedule !plugin "!label"',
$base_count + 1,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'rules_scheduler_schedule_form',
$base_count + 1,
$base_path,
),
'access callback' => 'rules_config_access',
'access arguments' => array(
'update',
$base_count + 1,
),
'file' => 'rules_scheduler.admin.inc',
'file path' => drupal_get_path('module', 'rules_scheduler'),
);
}