function quicktabs_quicktabs_tabstyles in Quick Tabs 6
Same name and namespace in other branches
- 5 quicktabs.module \quicktabs_quicktabs_tabstyles()
- 6.3 quicktabs.module \quicktabs_quicktabs_tabstyles()
- 6.2 quicktabs.module \quicktabs_quicktabs_tabstyles()
- 7.2 quicktabs.module \quicktabs_quicktabs_tabstyles()
Implementation of hook_quicktabs_widgets.
This hook allows other modules to create additional tab styles for the quicktabs module.
Return value
array An array of key => value pairs suitable for inclusion as the #options in a select or radios form element. Each key must be the location of a css file for a quick tabs style. Each value should be the name of the style.
File
- ./
quicktabs.module, line 773
Code
function quicktabs_quicktabs_tabstyles() {
$tabstyles_directory = drupal_get_path('module', 'quicktabs') . '/tabstyles';
$files = file_scan_directory($tabstyles_directory, '\\.css$');
$tabstyles = array();
foreach ($files as $file) {
$tabstyles[$file->filename] = drupal_ucfirst($file->name);
}
return $tabstyles;
}