You are here

function answers_menu in Answers 7.4

Same name and namespace in other branches
  1. 5.2 answers.module \answers_menu()
  2. 6.2 answers.module \answers_menu()
  3. 6 answers.module \answers_menu()
  4. 7 answers.module \answers_menu()
  5. 7.2 answers.module \answers_menu()
  6. 7.3 answers.module \answers_menu()

Implements hook_menu().

File

./answers.module, line 27
The Answers module.

Code

function answers_menu() {
  $items = array();
  $items['admin/config/content/answers'] = array(
    'title' => 'Answers',
    'description' => 'Configure how the question/answer service operates',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'answers_settings',
    ),
    'access arguments' => array(
      'administer content types',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/content/answers/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
  );
  $items['admin/config/content/answers/orphan'] = array(
    'title' => 'Orphans',
    'description' => 'Report of answers without questions.',
    'page callback' => 'answers_orphan_report',
    'file' => 'includes/answers.display.inc',
    'access arguments' => array(
      'administer content types',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 15,
  );
  return $items;
}