function drush_pm_enable_find_project_from_extension

8.0.x drush_pm_enable_find_project_from_extension($extension)
7.x drush_pm_enable_find_project_from_extension($extension)
master drush_pm_enable_find_project_from_extension($extension)

Helper function for pm-enable.

1 call to drush_pm_enable_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 919
The drush Project Manager


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

  if (!isset($result)) {
    $release_info = drush_get_engine('release_info');

    // If we can find info on a project that has the same name
    // as the requested extension, then we'll call that a match.
    $request = pm_parse_request($extension);
    if ($release_info->checkProject($request)) {
      $result = $extension;

  return $result;