You are here

function quicktabs_settings in Quick Tabs 6.3

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_settings()
  2. 6 quicktabs.module \quicktabs_settings()
  3. 6.2 includes/admin.inc \quicktabs_settings()

Callback function for admin/settings/quicktabs. Display the settings form.

1 string reference to 'quicktabs_settings'
quicktabs_menu in ./quicktabs.module
Implementation of hook_menu().

File

includes/admin.inc, line 616

Code

function quicktabs_settings() {
  $options = array();
  $styles = module_invoke_all('quicktabs_tabstyles');

  // The keys used for options must be valid html id-s.
  // Removing the css file path, because that can't be used.
  foreach ($styles as $style) {
    $options[$style] = $style;
  }
  ksort($options);
  $form['quicktabs_tabstyle'] = array(
    '#type' => 'radios',
    '#title' => t('Quicktab styles'),
    '#options' => array(
      'nostyle' => t('No style'),
    ) + $options,
    '#default_value' => variable_get('quicktabs_tabstyle', 'nostyle'),
    '#description' => t('Select the default style for quicktabs.'),
    '#attributes' => array(
      'class' => 'quicktabs-tabstyles clear-block',
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}