forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#537280 by jasonn1234. D7 compatibility. This gets almost all command…
…s except for the pm commands. help wanted.
- Loading branch information
1 parent
1cb52f2
commit 14c7daf
Showing
9 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
// $Id: | ||
/** | ||
* @file | ||
* Helper functions for /includes/environment.php. | ||
* drush_include_engine() magically includes either this file | ||
* or environment_7.php depending on which version of drupal drush | ||
* is called from. | ||
*/ | ||
|
||
/** | ||
* Get module information for all installed modules. | ||
* | ||
* @return | ||
* An array containing module info for all installed modules. | ||
*/ | ||
function _drush_get_modules() { | ||
return module_rebuild_cache(); | ||
} | ||
|
||
/** | ||
* Get theme information for all installed themes. | ||
* | ||
* @return | ||
* An array containing theme info for all installed themes. | ||
*/ | ||
function _drush_get_themes() { | ||
return _system_theme_data(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
// $Id: | ||
/** | ||
* @file | ||
* Helper functions for /includes/environment.php. | ||
* drush_include_engine() magically includes either this file | ||
* or environment.php depending on which version of drupal drush | ||
* is called from. | ||
*/ | ||
|
||
/** | ||
* Get module information for all installed modules. | ||
* | ||
* @return | ||
* An array containing module info for all installed modules. | ||
*/ | ||
function _drush_get_modules() { | ||
$module_info = drupal_system_listing('/\.module$/', 'modules', 'name', 0); | ||
system_get_files_database($module_info, 'module'); | ||
foreach ($module_info as $module_name => $module){ | ||
$module_info[$module_name]->info = drupal_parse_info_file(dirname($module->filename) .'/'. $module->name .'.info'); | ||
} | ||
return $module_info; | ||
} | ||
|
||
/** | ||
* Get theme information for all installed themes. | ||
* | ||
* @return | ||
* An array containing theme info for all installed themes. | ||
*/ | ||
function _drush_get_themes() { | ||
return _system_get_theme_data(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters