You are here

function answers_menu in Answers 7.2

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.3 answers.module \answers_menu()

File

./answers.module, line 27

Code

function answers_menu($may_cache = NULL) {
  $nid = (int) arg(1);
  global $user;
  $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['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;
}