function recommender_menu in Recommender API 7.6
Same name and namespace in other branches
- 6.3 recommender.module \recommender_menu()
- 6.2 recommender.module \recommender_menu()
- 7.3 recommender.module \recommender_menu()
- 7.4 recommender.module \recommender_menu()
- 7.5 recommender.module \recommender_menu()
Implements hook_menu().
File
- ./
recommender.module, line 27
Code
function recommender_menu() {
$items = array();
$items[RECOMMENDER_ADMIN_PATH] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Recommender API',
'description' => t('The admin interface to interact with Recommender API module and sub-modules.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'recommender_overview',
),
'access arguments' => array(
'administer recommender',
),
);
$items[RECOMMENDER_ADMIN_PATH . '/overview'] = array(
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => 'Overview',
'weight' => -10,
);
return $items;
}