Callback function for admin/structure/quicktabs/styles. The style chooser form.

1 string reference to 'quicktabs_tabstyles_styles'
quicktabs_tabstyles_menu in quicktabs_tabstyles/quicktabs_tabstyles.module
Implements hook_menu().

File

quicktabs_tabstyles/quicktabs_tabstyles.module, line 31

Code

function quicktabs_tabstyles_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;
}