function answers_start_ask_form in Answers 7.3
Same name and namespace in other branches
- 6.2 includes/answers.search.inc \answers_start_ask_form()
- 6 includes/answers.search.inc \answers_start_ask_form()
- 7 includes/answers.search.inc \answers_start_ask_form()
- 7.2 includes/answers.search.inc \answers_start_ask_form()
Ask question form.
1 string reference to 'answers_start_ask_form'
- answers_menu in ./
answers.module - Implements hook_menu().
File
- includes/
answers.search.inc, line 48 - Search functions for the 'Answers' module.
Code
function answers_start_ask_form($form, &$form_state) {
// This tells it to submit to question/contiue_ask with current question
// as search term.
$form['#method'] = 'GET';
$form['#action'] = url('questions/continue_ask');
$form['keys'] = array(
'#type' => 'textfield',
'#title' => t('Question'),
'#size' => 80,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Begin'),
'#submit' => array(
'answers_start_ask_submit',
),
);
$form['#after_build'] = array(
'answers_remove_extra_elements',
);
return $form;
}