Now, let's learn how you can integrate Drush with a Drupal module to make certain install tasks easier.
In Aptana Studio, create a new folder named
drush
in thed7dev/sites/all/modules/views_slideshow
folder.Next, copy the
colorbox.drush.inc
file from themodules/colorbox
folder to thedrush
folder we just created, and rename it toviews_slideshow.drush.inc
.Open the
views_slideshow.drush.inc
file in Aptana Studio, and modify the first eleven lines so they look as follows:<?php /** * @file * drush integration for views_slideshow. */ /** * The jQuery Cycle plugin URI. */ define('JQUERY_CYCLE_DOWNLOAD_URI', 'https://github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js');
We are updating some of the comments to reflect that this is for the Views Slideshow module, and changing the name of the constant and location for downloading the jQuery Cycle plugin.
Next, we are going to rename the
hook_drush_command...