You are here

function quicktabs_style_options in Quick Tabs 6.3

Same name and namespace in other branches
  1. 6.2 quicktabs.module \quicktabs_style_options()

Get a list of all available tab styles, suitable for use as an options array.

2 calls to quicktabs_style_options()
quicktabs_style_plugin::options_form in includes/quicktabs_style_plugin.inc
_qt_admin_main_form in includes/admin.inc

File

./quicktabs.module, line 493

Code

function quicktabs_style_options($include_defaults = TRUE) {
  $styles = module_invoke_all('quicktabs_tabstyles');

  // The keys used for options must be valid html id-s.
  foreach ($styles as $style) {
    $style_options[$style] = $style;
  }
  ksort($style_options);
  if ($include_defaults) {
    $style_options = array(
      'nostyle' => t('No style'),
      'default' => t('Default style'),
    ) + $style_options;
  }
  return $style_options;
}