You are here

function libraries_get_enabled_themes in Libraries API 7.2

Same name and namespace in other branches
  1. 7.3 libraries.module \libraries_get_enabled_themes()

Returns all enabled themes.

Themes are sorted so that base themes always precede their child themes.

Return value

array An associative array of theme objects keyed by theme name.

1 call to libraries_get_enabled_themes()
libraries_info in ./libraries.module
Returns information about registered libraries.

File

./libraries.module, line 90
External library handling for Drupal modules.

Code

function libraries_get_enabled_themes() {
  $themes = array();
  foreach (list_themes() as $name => $theme) {
    if ($theme->status) {
      $themes[$name] = $theme;
    }
  }
  return libraries_sort_themes($themes);
}