function drush_get_extensions

8.0.x drush_get_extensions($include_hidden = TRUE)
6.x drush_get_extensions($include_hidden = TRUE)
7.x drush_get_extensions($include_hidden = TRUE)
4.x drush_get_extensions()
5.x drush_get_extensions($include_hidden = TRUE)
master drush_get_extensions($include_hidden = TRUE)

Get complete information for all available extensions (modules and themes).

Return value

An array containing info for all available extensions.

10 calls to drush_get_extensions()
drush_get_projects in commands/pm/
Obtain an array of installed projects off the extensions available.
drush_make_generate in commands/make/
Drush callback; generate makefile from the current build.
drush_pm_disable in commands/pm/
Command callback. Disable one or more extensions.
drush_pm_enable_validate in commands/pm/
Validate callback. Determine the modules and themes that the user would like enabled.
drush_pm_info in commands/pm/
Command callback. Show detailed info for one or more extensions.

... See full list


includes/, line 893
Functions used by drush to query the environment and setting the current configuration.


function drush_get_extensions($include_hidden = TRUE) {
  drush_include_engine('drupal', 'environment');
  $extensions = array_merge(drush_get_modules($include_hidden), drush_get_themes($include_hidden));
  foreach ($extensions as $name => $extension) {
    if (isset($extension->info['name'])) {
      $extensions[$name]->label = $extension->info['name'] . ' (' . $extension->name . ')';
    else {
      drush_log(dt("Extension !name provides no human-readable name in .info file.", array('!name' => $name), 'debug'));
      $extensions[$name]->label = $name . ' (' . $extension->name . ')';
    if (empty($extension->info['package'])) {
      $extensions[$name]->info['package'] = dt('Other');
  return $extensions;