summaryrefslogtreecommitdiff
path: root/modules/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system.module')
-rw-r--r--modules/system.module10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/system.module b/modules/system.module
index 82cc352d1..5001001ca 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -1206,13 +1206,19 @@ function system_theme_settings($key = '') {
}
-function search_box() {
- $form['#action'] = url('search');
+/**
+ * Output a search form.
+ */
+function search_box($path = NULL) {
+ $form['#action'] = is_null($path) ? url('search') : url($path);
$form['keys'] = array('#type' => 'textfield', '#size'=> 15, '#value' => '', '#attributes' => array('alt' => t('Enter the terms you wish to search for.')));
$form['submit'] = array('#type' => 'submit', '#value' => t('Search'));
return drupal_get_form('search_box', $form);
}
+/**
+ * Theme a search form.
+ */
function theme_search_box($form) {
$output = '<div id="search" class="container-inline">';
$output .= form_render($form);