function drush_extension_get_path

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

Gets the extension path.

Parameters

$info: The extension info.

Return value

string The extension path.

4 calls to drush_extension_get_path()
drush_get_projects in commands/pm/pm.drush.inc
Obtain an array of installed projects off the extensions available.
drush_pm_enable_validate in commands/pm/pm.drush.inc
Validate callback. Determine the modules and themes that the user would like enabled.
_drush_generate_custom_project in commands/make/generate.make.inc
Create a project record for an extension not downloaded from drupal.org
_drush_pm_info_extension in commands/pm/info.pm.inc
Return an array with general info of an extension.

File

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

Code

function drush_extension_get_path($info) {
  drush_include_engine('drupal', 'environment');
  return _drush_extension_get_path($info);
}