function drush_extension_get_name

8.0.x environment.inc drush_extension_get_name($info)
7.x environment.inc drush_extension_get_name($info)
master environment.inc drush_extension_get_name($info)

Gets the extension name.

Parameters

$info: The extension info.

Return value

string The extension name.

3 calls to drush_extension_get_name()
drush_get_projects in commands/pm/pm.drush.inc
Obtain an array of installed projects off the extensions available.
_drush_pm_info_extension in commands/pm/info.pm.inc
Return an array with general info of an extension.
_drush_pm_info_module in commands/pm/info.pm.inc
Return an array with info of a module.

File

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

Code

function drush_extension_get_name($info) {
  drush_include_engine('drupal', 'environment');
  return _drush_extension_get_name($info);
}