function answers_menu in Answers 6.2
Same name and namespace in other branches
- 5.2 answers.module \answers_menu()
- 6 answers.module \answers_menu()
- 7.4 answers.module \answers_menu()
- 7 answers.module \answers_menu()
- 7.2 answers.module \answers_menu()
- 7.3 answers.module \answers_menu()
Implements hook_menu().
File
- ./
answers.module, line 22
Code
function answers_menu() {
$items['admin/settings/answers'] = array(
'title' => 'Answers',
'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_CALLBACK,
);
return $items;
}