You are here

function ad_actions_menu_alter in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 actions/ad_actions.module \ad_actions_menu_alter()
  2. 7 actions/ad_actions.module \ad_actions_menu_alter()

Implementation of hook_menu_alter

File

actions/ad_actions.module, line 306
Enable ad triggers and actions.

Code

function ad_actions_menu_alter(&$items) {

  // In theory we can define this title in HOOK_hook_info(),
  // but as that doesn't seem to work we're overriding it here.
  $items['admin/build/trigger/ad_actions']['title'] = 'Advertisements';

  // Use a custom permissions
  $items['admin/build/trigger/ad_actions']['access arguments'] = array(
    'administer ad triggers',
  );
}