function hook_rules_ui_menu_alter

Allows modules to alter or to extend the provided Rules UI.

Use this hook over the regular hook_menu_alter() as the Rules UI is re-used and embedded by modules. See rules_ui().

Parameters

$items: The menu items to alter.

$base_path: The base path of the Rules UI.

$base_count: The count of the directories contained in the base path.

Related topics

2 functions implement hook_rules_ui_menu_alter()

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_ui_menu_alter in rules_i18n/rules_i18n.module
Implements hook_menu().
rules_scheduler_rules_ui_menu_alter in rules_scheduler/rules_scheduler.module
Implements hook_rules_ui_menu_alter().
1 invocation of hook_rules_ui_menu_alter()
RulesUIController::config_menu in ui/ui.controller.inc
Generates menu items to manipulate rules configurations.

File

./rules.api.php, line 1055

Code

function hook_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'),
    );
}