Commit fd0e24db authored by omega8cc's avatar omega8cc Committed by helmo

Issue #1785624 by omega8cc - Some Drupal API changes in D7 (and D8) are not...

Issue #1785624 by omega8cc - Some Drupal API changes in D7 (and D8) are not used/respected properly.
parent 09d1f8fa
<?php <?php
/**
* @file
* Find modules, themes and themes engines
*/
drush_set_option('modules', _scrub_object(module_rebuild_cache()), 'site'); if (drush_drupal_major_version() >= 7) {
// Find theme engines drush_set_option('modules', _scrub_object(system_rebuild_module_data()), 'site');
drush_set_option('engines', _scrub_object(drupal_system_listing('\.engine$', 'themes/engines')), 'site'); drush_set_option('themes', _scrub_object(system_rebuild_theme_data()), 'site');
drush_set_option('themes', _scrub_object(system_theme_data()), 'site'); }
else {
drush_set_option('modules', _scrub_object(module_rebuild_cache()), 'site');
drush_set_option('themes', _scrub_object(system_theme_data()), 'site');
}
drush_set_option('engines', _scrub_object(drupal_system_listing('\.engine$', 'themes/engines')), 'site');
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment