aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jquery_drawer.module14
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>';