| 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 |
| 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 |
} |
} |
| 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(' |