Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function mymodule_menu() {
$items['redirect/stats'] = array(
'page callback' => 'drupal_goto',
'page arguments' => array('stats'),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'main_menu' // Not sure if this is the right name
);
$items['redirect/tickets'] = array(
'page callback' => 'drupal_goto',
'page arguments' => array('tickets'),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'main_menu' // Not sure if this is the right name
);
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment