You are here

function recommender_menu in Recommender API 6.2

Same name and namespace in other branches
  1. 6.3 recommender.module \recommender_menu()
  2. 7.6 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()

File

./recommender.module, line 177

Code

function recommender_menu() {
  $items = array();
  $items['admin/settings/recommender'] = array(
    'title' => 'Recommender API',
    'description' => 'Configuration and trigger recommender modules',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'recommender_settings_form',
    ),
    'access arguments' => array(
      'administer recommender',
    ),
  );
  $items['recommender/run'] = array(
    'title' => 'Running recommender',
    'page callback' => 'recommender_run',
    'access arguments' => array(
      'administer recommender',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}