/[drupal]/contributions/modules/jstools/tabs/tabs.module
ViewVC logotype

Diff of /contributions/modules/jstools/tabs/tabs.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9.2.15, Sat Mar 29 13:37:28 2008 UTC revision 1.9.2.16, Thu Jun 19 23:03:38 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: tabs.module,v 1.34 2007/12/04 22:38:55 nedjo Exp $  // $Id: tabs.module,v 1.9.2.15 2008/03/29 13:37:28 nedjo Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 66  function tabs_admin_settings() { Line 66  function tabs_admin_settings() {
66      '#default_value' => variable_get('tabs_navigation', 0),      '#default_value' => variable_get('tabs_navigation', 0),
67      '#options' => array(t('disabled'), t('enabled')),      '#options' => array(t('disabled'), t('enabled')),
68    );    );
69      $form['tabs_nav_next'] = array(
70        '#type' => 'textfield',
71        '#title' => t('Next button caption'),
72        '#description' => t('The text to be displayed in the \'next\' button.'),
73        '#default_value' => variable_get('tabs_nav_next', t('next')),
74      );
75      $form['tabs_nav_prev'] = array(
76        '#type' => 'textfield',
77        '#title' => t('Previous button caption'),
78        '#description' => t('The text to be displayed in the \'previous\' button.'),
79        '#default_value' => variable_get('tabs_nav_prev', t('previous')),
80      );
81    $form = system_settings_form($form);    $form = system_settings_form($form);
82    return $form;    return $form;
83  }  }
# Line 161  function tabs_load() { Line 173  function tabs_load() {
173          $path . '/tabs.js',          $path . '/tabs.js',
174        )        )
175      );      );
176      drupal_add_js(array('tabs' => array('slide' => (bool) variable_get('tabs_slide', 0), 'fade' => (bool) variable_get('tabs_fade', 0), 'speed' => variable_get('tabs_speed', 'slow'), 'auto_height' => (bool) variable_get('tabs_auto_height', 0), 'next_text' => t('next'), 'previous_text' => t('previous'))), 'setting');      drupal_add_js(array('tabs' => array('slide' => (bool) variable_get('tabs_slide', 0), 'fade' => (bool) variable_get('tabs_fade', 0), 'speed' => variable_get('tabs_speed', 'slow'), 'auto_height' => (bool) variable_get('tabs_auto_height', 0), 'next_text' => variable_get('tabs_nav_next', t('next')), 'previous_text' => variable_get('tabs_nav_prev', t('previous')))), 'setting');
177      drupal_add_css($path . '/drupal-tabs.css');      drupal_add_css($path . '/drupal-tabs.css');
178      drupal_add_css($path . '/tabs.css');      drupal_add_css($path . '/tabs.css');
179      drupal_set_html_head('      drupal_set_html_head('

Legend:
Removed from v.1.9.2.15  
changed lines
  Added in v.1.9.2.16

  ViewVC Help
Powered by ViewVC 1.1.2