diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-02 13:13:46 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-02 13:13:46 +0000 |
commit | c4b031f334df1de3df666abbfacf440df22b293c (patch) | |
tree | c13f300106e54db24e492c43be26b048bc189127 /modules | |
parent | 3a84ed2a90ab56b2563dd09f157131e45a0fe32f (diff) | |
download | brdo-c4b031f334df1de3df666abbfacf440df22b293c.tar.gz brdo-c4b031f334df1de3df666abbfacf440df22b293c.tar.bz2 |
#56911, advanced search broken, patch by Zen.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node.module | 6 | ||||
-rw-r--r-- | modules/node/node.module | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/node.module b/modules/node.module index 092523f1b..32083046c 100644 --- a/modules/node.module +++ b/modules/node.module @@ -2164,9 +2164,9 @@ function node_form_alter($form_id, &$form) { /** * Form API callback for the search form. Registered in node_form_alter(). */ -function node_search_validate($form_id, $form_values) { +function node_search_validate($form_id, $form_values, $form) { // Initialise using any existing basic search keywords. - $keys = $form_values['processed_keys']['#ref']; + $keys = $form['basic']['inline']['processed_keys']['#ref']; // Insert extra restrictions into the search keywords string. if (isset($form_values['type']) && is_array($form_values['type'])) { @@ -2193,7 +2193,7 @@ function node_search_validate($form_id, $form_values) { $keys .= ' "'. str_replace('"', ' ', $form_values['phrase']) .'"'; } if (!empty($keys)) { - $form_values['processed_keys']['#ref'] = trim($keys); + $form['basic']['inline']['processed_keys']['#ref'] = trim($keys); } } diff --git a/modules/node/node.module b/modules/node/node.module index 092523f1b..32083046c 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2164,9 +2164,9 @@ function node_form_alter($form_id, &$form) { /** * Form API callback for the search form. Registered in node_form_alter(). */ -function node_search_validate($form_id, $form_values) { +function node_search_validate($form_id, $form_values, $form) { // Initialise using any existing basic search keywords. - $keys = $form_values['processed_keys']['#ref']; + $keys = $form['basic']['inline']['processed_keys']['#ref']; // Insert extra restrictions into the search keywords string. if (isset($form_values['type']) && is_array($form_values['type'])) { @@ -2193,7 +2193,7 @@ function node_search_validate($form_id, $form_values) { $keys .= ' "'. str_replace('"', ' ', $form_values['phrase']) .'"'; } if (!empty($keys)) { - $form_values['processed_keys']['#ref'] = trim($keys); + $form['basic']['inline']['processed_keys']['#ref'] = trim($keys); } } |