You are here

function quicktabs_tabstyles_quicktabs_tabstyles in Quick Tabs 7.3

Implements hook_quicktabs_tabstyles().

File

quicktabs_tabstyles/quicktabs_tabstyles.module, line 102

Code

function quicktabs_tabstyles_quicktabs_tabstyles() {
  $tabstyles_directory = drupal_get_path('module', 'quicktabs_tabstyles') . '/tabstyles';
  $files = file_scan_directory($tabstyles_directory, '/\\.css$/');
  $tabstyles = array();
  foreach ($files as $file) {

    // Skip RTL files.
    if (!strpos($file->name, '-rtl')) {
      $tabstyles[$file->uri] = drupal_ucfirst($file->name);
    }
  }
  return $tabstyles;
}