You are here

function quicktabs_settings in Quick Tabs 5

Same name and namespace in other branches
  1. 6.3 includes/admin.inc \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

./quicktabs.module, line 618

Code

function quicktabs_settings() {
  $form = array();
  $form['quicktabs_tabstyle'] = array(
    '#type' => 'radios',
    '#title' => t('Tab Style'),
    '#options' => array(
      'default' => t('Default (no style)'),
    ) + module_invoke_all('quicktabs_tabstyles'),
    '#default_value' => variable_get('quicktabs_tabstyle', 'default'),
    '#description' => t('Choose a tab style for your Quick Tabs blocks.'),
    '#attributes' => array(
      'class' => 'quicktabs-tabstyles clear-block',
    ),
  );
  $form['quicktabs_blocktitles'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show block titles within Quick Tabs blocks'),
    '#default_value' => variable_get('quicktabs_blocktitles', 1),
  );
  $form['quicktabs_viewbuild'] = array(
    '#type' => 'radios',
    '#title' => t('Choose how your views should be built within Quick Tabs blocks'),
    '#options' => array(
      'embed' => 'Embed',
      'block' => 'Block',
      'page' => 'Page',
    ),
    '#default_value' => variable_get('quicktabs_viewbuild', 'embed'),
  );
  $form['quicktabs_effect'] = array(
    '#type' => 'radios',
    '#title' => t('Choose an effect for your tabs'),
    '#options' => array(
      'none' => 'None',
      'slide' => 'Slide',
      'fade' => 'Fade',
    ),
    '#default_value' => variable_get('quicktabs_effect', 'none'),
  );
  return system_settings_form($form);
}