'radios', '#title' => t('Slide effect'), '#description' => t('Apply slide effect when changing tabs.'), '#default_value' => variable_get('tabs_slide', 0), '#options' => array(t('disabled'), t('enabled')), ); $form['tabs_fade'] = array( '#type' => 'radios', '#title' => t('Fade effect'), '#description' => t('Apply fade effect when changing tabs.'), '#default_value' => variable_get('tabs_fade', 0), '#options' => array(t('disabled'), t('enabled')), ); $form['tabs_speed'] = array( '#type' => 'radios', '#title' => t('Effect speed'), '#description' => t('Speed at which to apply effects.'), '#default_value' => variable_get('tabs_speed', 'slow'), '#options' => array('slow' => t('slow'), 'fast' => t('fast'), '1' => t('immediate')), ); $form['tabs_navigation'] = array( '#type' => 'radios', '#title' => t('Navigation buttons'), '#description' => t('Enable to add "next" and "previous" buttons to the bottom of all tab sets.'), '#default_value' => variable_get('tabs_navigation', 0), '#options' => array(t('disabled'), t('enabled')), ); $form['tabs_nav_next'] = array( '#type' => 'textfield', '#title' => t('Next button caption'), '#description' => t('The text to be displayed in the \'next\' button.'), '#default_value' => variable_get('tabs_nav_next', t('next')), ); $form['tabs_nav_prev'] = array( '#type' => 'textfield', '#title' => t('Previous button caption'), '#description' => t('The text to be displayed in the \'previous\' button.'), '#default_value' => variable_get('tabs_nav_prev', t('previous')), ); $form['tabs_descriptive_urls'] = array( '#type' => 'radios', '#title' => t('Descriptive tab URLs'), '#description' => t('Construct a descriptive tab URL from the title of the tab. This can be useful for making URLs of tabs more readable. However, special characters in tab titles are stripped when constructing the URL, which can lead to meaningless URLs on sites using many special characters.'), '#default_value' => variable_get('tabs_descriptive_urls', 0), '#options' => array(t('disabled'), t('enabled')), ); $form = system_settings_form($form); return $form; }