C:/drupal/modules/search/search.pages.inc File Reference

Go to the source code of this file.


Functions

 search_view ($type= 'node')
 template_preprocess_search_results (&$variables)
 template_preprocess_search_result (&$variables)
 search_form_validate ($form, &$form_state)
 search_form_submit ($form, &$form_state)


Detailed Description

User page callbacks for the search module.

Definition in file search.pages.inc.


Function Documentation

search_form_submit ( form,
&$  form_state 
)

Process a search form submission.

Definition at line 120 of file search.pages.inc.

References $type, form_set_error(), and t().

Here is the call graph for this function:

search_form_validate ( form,
&$  form_state 
)

As the search form collates keys from other modules hooked in via hook_form_alter, the validation takes place in _submit. search_form_validate() is used solely to set the 'processed_keys' form value for the basic search form.

Definition at line 113 of file search.pages.inc.

References form_set_value().

Here is the call graph for this function:

search_view ( type = 'node'  ) 

Menu callback; presents the search form and/or search results.

Definition at line 12 of file search.pages.inc.

References $output, $results, $type, drupal_get_form(), drupal_goto(), drupal_help_arg(), l(), module_invoke(), t(), theme(), and watchdog().

Here is the call graph for this function:

template_preprocess_search_result ( &$  variables  ) 

Process variables for search-result.tpl.php.

The $variables array contains the following arguments:

  • $result
  • $type

See also:
search-result.tpl.php

Definition at line 80 of file search.pages.inc.

References $result, check_plain(), check_url(), and format_date().

Here is the call graph for this function:

template_preprocess_search_results ( &$  variables  ) 

Process variables for search-results.tpl.php.

The $variables array contains the following arguments:

  • $results
  • $type

See also:
search-results.tpl.php

Definition at line 61 of file search.pages.inc.

References $result, and theme().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:28 2008 for SimpleTest by  1.5.5