function answers_menu in Answers 6
Same name and namespace in other branches
- 5.2 answers.module \answers_menu()
- 6.2 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()
File
- ./
answers.module, line 20
Code
function answers_menu($may_cache = NULL) {
$nid = (int) arg(1);
global $user;
$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(
'add question',
),
'file' => 'includes/answers.search.inc',
'type' => MENU_CALLBACK,
);
return $items;
}