function drush_find_profiles
8.0.x drupal.inc | drush_find_profiles($drupal_root, $key = 'name') |
6.x drupal.inc | drush_find_profiles($drupal_root, $key = 'name') |
7.x drupal.inc | drush_find_profiles($drupal_root, $key = 'name') |
5.x drupal.inc | drush_find_profiles($drupal_root, $key = 'name') |
master drupal.inc | drush_find_profiles($drupal_root, $key = 'name') |
2 calls to drush_find_profiles()
- core_site_install_complete in commands/
core/ core.drush.inc - Command argument complete callback.
- drush_pm_extensions_in_project in commands/
pm/ pm.drush.inc - Print out all extensions (modules/themes/profiles) found in specified project.
File
- includes/
drupal.inc, line 141 - Utility functions related to Drupal.
Code
function drush_find_profiles($drupal_root, $key = 'name') {
return drush_scan_directory($drupal_root . '/profiles', "/.*\.profile$/", array('.', '..', 'CVS', 'tests'), 0, 2, $key);
}