function drush_pm_lookup_extension_in_cache

8.0.x pm.drush.inc drush_pm_lookup_extension_in_cache($extension)
6.x pm.drush.inc drush_pm_lookup_extension_in_cache($extension)
7.x pm.drush.inc drush_pm_lookup_extension_in_cache($extension)
4.x pm.drush.inc drush_pm_lookup_extension_in_cache($extension)
5.x pm.drush.inc drush_pm_lookup_extension_in_cache($extension)
master pm.drush.inc drush_pm_lookup_extension_in_cache($extension)

Lookup an extension in the extensions cache.

1 call to drush_pm_lookup_extension_in_cache()
drush_pm_enable_find_project_from_extension in commands/pm/pm.drush.inc
Helper function for pm-enable.

File

commands/pm/pm.drush.inc, line 2036
The drush Project Manager

Code

function drush_pm_lookup_extension_in_cache($extension) {
  $result = NULL;
  $extension_cache = _drush_pm_get_extension_cache();
  if (!empty($extension_cache) && array_key_exists($extension, $extension_cache)) {
    $result = $extension_cache[$extension];
  }
  return $result;
}