function advanced_help_search_form in Advanced Help 6
Same name and namespace in other branches
- 5 advanced_help.module \advanced_help_search_form()
- 7 advanced_help.module \advanced_help_search_form()
Form builder callback to build the search form.
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 315 - Pluggable system to provide advanced help facilities for Drupal and modules.
Code
function advanced_help_search_form(&$form_state, $keys = '') {
$form = search_form($form_state, advanced_help_url('admin/advanced_help'), $keys, 'advanced_help', t('Search help'));
require_once './' . drupal_get_path('module', 'search') . '/search.pages.inc';
$form['basic']['inline']['submit']['#validate'] = array(
'search_form_validate',
);
$form['basic']['inline']['submit']['#submit'] = array(
'advanced_help_search_form_submit',
);
return $form;
}