From 172a35faf4492bf01543b7d09c25ab8754079a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 27 Nov 2007 13:31:04 +0000 Subject: #184968 spin off coding style fixes to let the substance of the patch get reviewed --- modules/node/node.module | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index e7eaf458d..4433a1084 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1077,9 +1077,14 @@ function node_search($op = 'search', $keys = NULL) { case 'admin': $form = array(); // Output form for defining rank factor weights. - $form['content_ranking'] = array('#type' => 'fieldset', '#title' => t('Content ranking')); + $form['content_ranking'] = array( + '#type' => 'fieldset', + '#title' => t('Content ranking'), + ); $form['content_ranking']['#theme'] = 'node_search_admin'; - $form['content_ranking']['info'] = array('#value' => ''. t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') .''); + $form['content_ranking']['info'] = array( + '#value' => ''. t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') .'' + ); $ranking = array('node_rank_relevance' => t('Keyword relevance'), 'node_rank_recent' => t('Recently posted')); @@ -1093,7 +1098,12 @@ function node_search($op = 'search', $keys = NULL) { // Note: reversed to reflect that higher number = higher ranking. $options = drupal_map_assoc(range(0, 10)); foreach ($ranking as $var => $title) { - $form['content_ranking']['factors'][$var] = array('#title' => $title, '#type' => 'select', '#options' => $options, '#default_value' => variable_get($var, 5)); + $form['content_ranking']['factors'][$var] = array( + '#title' => $title, + '#type' => 'select', + '#options' => $options, + '#default_value' => variable_get($var, 5), + ); } return $form; @@ -2592,7 +2602,7 @@ function node_mass_update($nodes, $updates) { batch_set($batch); } else { - foreach($nodes as $nid) { + foreach ($nodes as $nid) { _node_mass_update_helper($nid, $updates); } drupal_set_message(t('The update has been performed.')); -- cgit v1.2.3