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

1 string reference to 'quicktabs_styles'
quicktabs_menu in ./quicktabs.module
Implements hook_menu().

File

includes/admin.inc, line 76

Code

function quicktabs_styles() {
    $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' => array(
                'quicktabs-tabstyles',
                'clear-block',
            ),
        ),
        '#theme' => 'quicktabs_style_options',
    );
    $form['submit'] = array(
        '#type' => 'submit',
        '#value' => t('Save'),
    );
    return $form;
}