function theme_quicktabs_settings in Quick Tabs 5
Same name and namespace in other branches
- 6.3 includes/admin.inc \theme_quicktabs_settings()
- 6 quicktabs.module \theme_quicktabs_settings()
- 6.2 includes/admin.inc \theme_quicktabs_settings()
File
- ./
quicktabs.module, line 648
Code
function theme_quicktabs_settings($form) {
quicktabs_add_css();
drupal_set_title(t('Quick Tabs Settings'));
// Default preview.
$form['quicktabs_tabstyle']['default']['#description'] = 'Default ' . t('Preview') . ':<br /><iframe class="quicktabs-preview" scrolling="no" src="' . url('quicktabs/preview') . '"></iframe>';
// Preview for each style.
$tabstyle_number = 0;
foreach (element_children($form['quicktabs_tabstyle']) as $tabstyle_key) {
if ($tabstyle_key != 'default') {
$form['quicktabs_tabstyle'][$tabstyle_key]['#description'] = $form['quicktabs_tabstyle'][$tabstyle_key]['#title'] . ' ' . t('Preview') . ':<br /><iframe class="quicktabs-preview" scrolling="no" src="' . url('quicktabs/preview/' . $tabstyle_number) . '"></iframe>';
$tabstyle_number++;
}
}
return drupal_render($form);
}