You are here

function answers_continue_ask_submit in Answers 7

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.2 includes/answers.search.inc \answers_continue_ask_submit()
  4. 7.3 includes/answers.search.inc \answers_continue_ask_submit()
1 string reference to 'answers_continue_ask_submit'
_answers_search_form_alter in includes/answers.search.inc
Pseudo implementation of hook_form_alter()

File

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

Code

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