From bd01eb22beb0996c2da7df622afe48279a22a82c Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 16 Oct 2009 11:36:01 -0300 Subject: Coding standards --- jquery_drawer.module | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/jquery_drawer.module b/jquery_drawer.module index a0a4b01..d03b4b8 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -104,7 +104,7 @@ function theme_jquery_drawer($menu) { foreach ($menu as $item) { $link['title'] = $item->name; - $link['href'] = 'jquery_drawer/' . $item->tid; + $link['href'] = 'jquery_drawer/'. $item->tid; $output .= theme('jquery_drawer_link', $link); } @@ -118,7 +118,7 @@ function theme_jquery_drawer($menu) { /** * Menu callback. */ -function jquery_drawer_page($tid = null) { +function jquery_drawer_page($tid = NULL) { // First render all nodes whose parent is $term $output = ''; @@ -126,7 +126,7 @@ function jquery_drawer_page($tid = null) { while ($node = db_fetch_object($nodes)) { $link['title'] = $node->title; - $link['href'] = 'node/' . $node->nid; + $link['href'] = 'node/'. $node->nid; $output .= theme('jquery_drawer_link', $link); } @@ -169,7 +169,7 @@ function jquery_drawer_menu_build($term) { global $_jquery_drawer_id; - if ($_jquery_drawer_id == null) { + if ($_jquery_drawer_id == NULL) { $_jquery_drawer_id = 0; } @@ -179,16 +179,17 @@ function jquery_drawer_menu_build($term) { $output .= '
  • '; $output .= $term->name; if (isset($term->below)) { - $output .= '