function theme_quicktabs_settings in Quick Tabs 6.3
Same name and namespace in other branches
- 5 quicktabs.module \theme_quicktabs_settings()
- 6 quicktabs.module \theme_quicktabs_settings()
- 6.2 includes/admin.inc \theme_quicktabs_settings()
Theme function for quicktabs settings page.
File
- includes/
admin.inc, line 654
Code
function theme_quicktabs_settings($form) {
drupal_add_css(drupal_get_path('module', 'quicktabs') . '/css/quicktabs-admin.css');
$tabs['one'] = array(
'title' => t('One'),
'type' => 'freetext',
'text' => t('First tab'),
);
$tabs['two'] = array(
'title' => t('Two'),
'type' => 'freetext',
'text' => t('Second tab'),
);
$tabs['three'] = array(
'title' => t('Three'),
'type' => 'freetext',
'text' => t('Third tab'),
);
$quicktabs['tabs'] = $tabs;
$quicktabs['ajax'] = FALSE;
$quicktabs['hide_empty_tabs'] = FALSE;
// Preview for each style.
foreach ($form['quicktabs_tabstyle']['#options'] as $style => $style_title) {
$quicktabs['style'] = $style;
$quicktabs['machine_name'] = drupal_strtolower($style);
$preview = '<div class="quicktabs-preview">' . theme('quicktabs', $quicktabs) . '</div>';
$form['quicktabs_tabstyle'][$style]['#description'] = t('%style preview', array(
'%style' => $style_title,
)) . ':<br />' . $preview;
}
return drupal_render($form);
}