You are here

function recommender_menu in Recommender API 7.6

Same name and namespace in other branches
  1. 6.3 recommender.module \recommender_menu()
  2. 6.2 recommender.module \recommender_menu()
  3. 7.3 recommender.module \recommender_menu()
  4. 7.4 recommender.module \recommender_menu()
  5. 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;
}