You are here

function answers_menu in Answers 7.3

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.4 answers.module \answers_menu()
  5. 7 answers.module \answers_menu()
  6. 7.2 answers.module \answers_menu()

Implements hook_menu().

File

./answers.module, line 44

Code

function answers_menu() {
  $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',
    ),
    'file' => 'includes/answers.form.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/content/answers/settings'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Settings',
  );
  $items['admin/config/content/answers/branding'] = array(
    'title' => 'Branding',
    'description' => 'Customize Questions and Answers.',
    'page callback' => 'drupal_get_form',
    'file' => 'includes/answers.form.inc',
    'page arguments' => array(
      'answers_branding_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $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 site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 15,
  );
  $items['questions/start_ask'] = array(
    'title' => 'Add a Question',
    'description' => 'Enter a question to ask ... and start the process of asking it',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'answers_start_ask_form',
    ),
    'access arguments' => array(
      'create question content',
    ),
    'file' => 'includes/answers.search.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  );
  return $items;
}