getSearchForm( $preHtml='', $postHtml='', $params=array() )

Loads the search module. This is the same as calling module('search').

  • string $preHtml: (Optional) A string that gets added to the markup before the module is loaded. This can be any HTML string.
  • string $postHtml: (Optional) A string that gets added to the markup after the module is loaded. This can be any HTML string.
  • array $params: An array of parameters passed to the module.

Example:

<?php getSearchForm('<div id="searchmodule">', '</div>'); ?>

See also: get_search_form()

Last modified on Wednesday, 31 March 2010 23:22

Add comment