changeset 15:bf2615aab48c tip

Make the module Coder-clean
author Franck Deroche <franck@defr.org>
date Tue, 31 Mar 2009 17:31:55 +0200
parents e060ad73e358
children
files noderef_view.module
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/noderef_view.module	Tue Mar 31 17:30:58 2009 +0200
+++ b/noderef_view.module	Tue Mar 31 17:31:55 2009 +0200
@@ -44,7 +44,7 @@
   if ($count == 0 && is_array($_COOKIE['noderef'])) {
     // Reset the cookies
     $before = time() - 300;
-    foreach($_COOKIE['noderef'] as $id => $val) {
+    foreach ($_COOKIE['noderef'] as $id => $val) {
       setcookie('noderef['. $id .']', 0, $before, '/');
     }
   }
@@ -92,7 +92,7 @@
  */
 function _noderef_view_walk_form(&$form, $fields, $items) {
   $alter = FALSE;
-  foreach($items as $key => $item) {
+  foreach ($items as $key => $item) {
     if (is_array($item)) {
       if (isset($fields[$key])) {
         $alter |= noderef_view_alter_item($form, $key, $fields[$key]);
@@ -138,7 +138,7 @@
       return '';
     }
     $path = '';
-    foreach($view->display as $display) {
+    foreach ($view->display as $display) {
       if (is_array($display->display_options) 
         && isset($display->display_options['path'])) {
         $path = $display->display_options['path'];