diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-15 21:52:44 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-04-15 21:52:44 +0000 |
commit | fb8ef283759abcd270bc727fd4af65ddc0fe5b84 (patch) | |
tree | 8a64647660167d931cb6a7462de4637378dfb8a1 /modules/node/node.module | |
parent | 8b04c7f0db4a7a483049635f961d1dcba7e568f1 (diff) | |
download | brdo-fb8ef283759abcd270bc727fd4af65ddc0fe5b84.tar.gz brdo-fb8ef283759abcd270bc727fd4af65ddc0fe5b84.tar.bz2 |
#56921: Remove all reference magic from form api. w00t.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index be974062b..cf8c085a2 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2170,7 +2170,7 @@ function node_form_alter($form_id, &$form) { */ function node_search_validate($form_id, $form_values, $form) { // Initialise using any existing basic search keywords. - $keys = $form['basic']['inline']['processed_keys']['#ref']; + $keys = $form_values['processed_keys']; // Insert extra restrictions into the search keywords string. if (isset($form_values['type']) && is_array($form_values['type'])) { @@ -2180,6 +2180,7 @@ function node_search_validate($form_id, $form_values, $form) { $keys = search_query_insert($keys, 'type', implode(',', array_keys($form_values['type']))); } } + if (isset($form_values['category']) && is_array($form_values['category'])) { $keys = search_query_insert($keys, 'category', implode(',', $form_values['category'])); } @@ -2197,7 +2198,7 @@ function node_search_validate($form_id, $form_values, $form) { $keys .= ' "'. str_replace('"', ' ', $form_values['phrase']) .'"'; } if (!empty($keys)) { - $form['basic']['inline']['processed_keys']['#ref'] = trim($keys); + form_set_value($form['basic']['inline']['processed_keys'], trim($keys)); } } |