diff options
author | Silvio <silvio@socioambiental.org> | 2009-10-16 11:30:49 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2009-10-16 11:30:49 -0300 |
commit | 065685c0f38240ae2c8e0bc7bdcfc1b66350b07d (patch) | |
tree | 1a1ce87f584840efa5113b0be57cd19384bb72c0 | |
parent | cf7ff05265920cc11df3fb27848903de7b6651ef (diff) | |
download | jquery_drawer-065685c0f38240ae2c8e0bc7bdcfc1b66350b07d.tar.gz jquery_drawer-065685c0f38240ae2c8e0bc7bdcfc1b66350b07d.tar.bz2 |
Conformance with global variable naming convention
-rw-r--r-- | jquery_drawer.module | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index dd73f27..a0a4b01 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -122,7 +122,7 @@ function jquery_drawer_page($tid = null) { // First render all nodes whose parent is $term $output = ''; - $nodes = taxonomy_select_nodes(array($tid)); + $nodes = taxonomy_select_nodes(array($tid)); while ($node = db_fetch_object($nodes)) { $link['title'] = $node->title; @@ -167,25 +167,25 @@ function jquery_drawer_page($tid = null) { */ function jquery_drawer_menu_build($term) { - global $jquery_drawer_id; + global $_jquery_drawer_id; - if ($jquery_drawer_id == null) { - $jquery_drawer_id = 0; + if ($_jquery_drawer_id == null) { + $_jquery_drawer_id = 0; } - $jquery_drawer_id++; + $_jquery_drawer_id++; if (isset($term->tid)) { $output .= '<li>'; $output .= $term->name; if (isset($term->below)) { - $output .= '<ul id="jquery_drawer[ul][' . $jquery_drawer_id . ']" class="hidden">'; + $output .= '<ul id="jquery_drawer[ul][' . $_jquery_drawer_id . ']" class="hidden">'; foreach($term->below as $child) { $output .= jquery_drawer_menu_build($child); } $output .= '</ul>'; } else if (isset($term->nodes)) { - $output .= '<ul id="jquery_drawer[ul][' . $jquery_drawer_id . ']" class="hidden">'; + $output .= '<ul id="jquery_drawer[ul][' . $_jquery_drawer_id . ']" class="hidden">'; foreach ($term->nodes as $node) { $output .= '<li>'; $output .= '<a href="' . $GLOBALS['base_url'] . '/node/' . $node->nid . '">' . $node->title . '</a>'; |