You are here

function advanced_help_search_form in Advanced Help 7

Same name and namespace in other branches
  1. 5 advanced_help.module \advanced_help_search_form()
  2. 6 advanced_help.module \advanced_help_search_form()

Form builder callback to build the search form.

Load search/search.pages so that its template preprocess functions are visible and can be invoked.

2 string references to 'advanced_help_search_form'
advanced_help_index_page in ./advanced_help.module
Page callback to view the advanced help topic index.
advanced_help_search_view in ./advanced_help.module
Page callback for advanced help search.

File

./advanced_help.module, line 424
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_search_form($form, &$form_state, $keys = '') {
  module_load_include('inc', 'search', 'search.pages');
  $form = search_form($form, $form_state, 'admin/help/ah', $keys, 'advanced_help', t('Search help'));
  $form['basic']['inline']['submit']['#validate'] = array(
    'search_form_validate',
  );
  $form['basic']['inline']['submit']['#submit'] = array(
    'advanced_help_search_form_submit',
  );
  return $form;
}