You are here

function answers_continue_ask_submit in Answers 7.3

Same name and namespace in other branches
  1. 6.2 includes/answers.search.inc \answers_continue_ask_submit()
  2. 6 includes/answers.search.inc \answers_continue_ask_submit()
  3. 7 includes/answers.search.inc \answers_continue_ask_submit()
  4. 7.2 includes/answers.search.inc \answers_continue_ask_submit()

Redirect form to the question form.

@todo Remove this and use GET instead of posted form.

1 string reference to 'answers_continue_ask_submit'
_answers_search_form_views_exposed_form_alter in includes/answers.search.inc
Pseudo implementation of hook_form_alter().

File

includes/answers.search.inc, line 120
Search functions for the 'Answers' module.

Code

function answers_continue_ask_submit($form, &$form_state) {
  $form_state['no_redirect'] = FALSE;
  $form_state['redirect'] = array(
    'node/add/question',
    array(
      'query' => array(
        'title' => $form_state['input']['keys'],
      ),
    ),
  );
}