I'm trying to script the automatic download and install of a set of modules for a Drupal 7 site.
At this point, I have Drupal and all desired modules downloading using a drush make profile, and installation of the site by calling drush_invoke_process on site-install.
I'm trying to get the downloaded modules activated after the installation of the site. I have tried a number of things, the latest of which is:
(code here...) drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL); drush_set_context('PM_ENABLE_MODULES',array('ctools', 'views', 'views_ui')); drush_pm_enable(); (code here...)
Every attempt to enable the downloaded modules results in the following error:
PHP Fatal error: Call to undefined function drush_module_enable() in /Users/lhridley/sp/Drupal/tools/drush/commands/pm/pm.drush.inc on line 904