function drush_pm_cache_project_extensions

8.0.x pm.drush.inc drush_pm_cache_project_extensions($project, $found)
6.x pm.drush.inc drush_pm_cache_project_extensions($project, $found)
7.x pm.drush.inc drush_pm_cache_project_extensions($project, $found)
4.x pm.drush.inc drush_pm_cache_project_extensions($project, $found)
5.x pm.drush.inc drush_pm_cache_project_extensions($project, $found)
master pm.drush.inc drush_pm_cache_project_extensions($project, $found)

Store extensions founds within a project in extensions cache.

1 call to drush_pm_cache_project_extensions()
drush_pm_extensions_in_project in commands/pm/pm.drush.inc
Print out all extensions (modules/themes/profiles) found in specified project.

File

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

Code

function drush_pm_cache_project_extensions($project, $found) {
  $extension_cache = _drush_pm_get_extension_cache();
  foreach ($found as $extension) {
    // Simple cache does not handle conflicts
    // We could keep an array of projects, and count
    // how many times each one has been seen...
    $extension_cache[$extension] = $project['name'];
  }
  drush_pm_put_extension_cache($extension_cache);
}