function drush_pm_find_project_from_extension

6.x drush_pm_find_project_from_extension($extension)
4.x drush_pm_find_project_from_extension($extension)
5.x drush_pm_find_project_from_extension($extension)
1 call to drush_pm_find_project_from_extension()
drush_pm_enable_validate in commands/pm/
Validate callback. Determine the modules and themes that the user would like enabled.


commands/pm/, line 564
The drush Project Manager


function drush_pm_find_project_from_extension($extension) {
  $result = drush_pm_lookup_extension_in_cache($extension);

  if (!isset($result)) {
    // If we can find info on a project that has the same name
    // as the requested extension, then we'll call that a match.
    $info = _drush_pm_get_releases(array($extension));
    if (!empty($info)) {
      $result = $extension;

  return $result;