From 48324f1e2c4d4e62ccd62ebfb3a8fcf9df6bc331 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 2 Feb 2010 17:17:59 -0200 Subject: Adding variable jquery_drawer_link --- jquery_drawer.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jquery_drawer.module b/jquery_drawer.module index cbb4b89..a3d2a15 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -53,6 +53,12 @@ function jquery_drawer_block($op = 'list', $delta = 0, $edit = array()) { '#description' => t('Select this option if you plan to manually provide the drawer box.'), '#default_value' => variable_get('jquery_drawer_drw', '0'), ); + $form['jquery_drawer_link'] = array( + '#type' => 'textfield', + '#title' => t('Base link path (useful for views).'), + '#description' => t('Set the base link for nodes listed in drawer.'), + '#default_value' => variable_get('jquery_drawer_link', 'node'), + ); return $form; case 'save': @@ -139,12 +145,13 @@ function theme_jquery_drawer($menu) { function jquery_drawer_page($tid = NULL) { $output = ''; $nodes = taxonomy_select_nodes(array($tid)); + $base = variable_get('jquery_drawer_link', 'node'); $output .= '