function drush_get_themes

8.0.x environment_7.inc drush_get_themes($include_hidden = TRUE)
8.0.x environment_6.inc drush_get_themes($include_hidden = TRUE)
8.0.x environment.inc drush_get_themes($include_hidden = TRUE)
6.x environment_6.inc drush_get_themes($include_hidden = TRUE)
6.x environment.inc drush_get_themes($include_hidden = TRUE)
6.x environment_7.inc drush_get_themes($include_hidden = TRUE)
7.x environment_7.inc drush_get_themes($include_hidden = TRUE)
7.x environment_6.inc drush_get_themes($include_hidden = TRUE)
7.x environment.inc drush_get_themes($include_hidden = TRUE)
3.x environment_7.inc drush_get_themes()
3.x environment_6.inc drush_get_themes()
3.x environment_5.inc drush_get_themes()
4.x environment_6.inc drush_get_themes()
4.x environment_5.inc drush_get_themes()
4.x environment.inc drush_get_themes()
5.x environment_6.inc drush_get_themes($include_hidden = TRUE)
5.x environment.inc drush_get_themes($include_hidden = TRUE)
master environment_7.inc drush_get_themes($include_hidden = TRUE)
master environment.inc drush_get_themes($include_hidden = TRUE)

Get complete information for all available themes.

We need to set the type for those themes that are not already in the system table.

Parameters

$include_hidden: Boolean to indicate whether hidden themes should be excluded or not.

Return value

An array containing theme info for all available themes.

3 calls to drush_get_themes()
drush_get_extensions in includes/environment.inc
Get complete information for all available extensions (modules and themes).
drush_get_named_extensions_list in commands/core/drupal/environment.inc
Return a list of modules from a list of named modules. Both enabled and disabled/uninstalled modules are returned.
_core_path_aliases in commands/core/core.drush.inc
2 string references to 'drush_get_themes'
_drush_cache_clear_types in commands/core/drupal/cache_8.inc
_drush_cache_clear_types in commands/core/drupal/cache.inc

File

commands/core/drupal/environment_6.inc, line 227
Specific functions for a drupal 6 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_get_themes($include_hidden = TRUE) {
  $themes = system_theme_data();
  foreach ($themes as $key => $theme) {
    if (!isset($theme->type)) {
      $theme->type = 'theme';
    }
    if ((!$include_hidden) && isset($theme->info['hidden']) && ($theme->info['hidden'])) {
      unset($themes[$key]);
    }
  }

  return $themes;
}