O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — creating a custom Drush command to install the jQuery Cycle plugin

Now, let's learn how you can integrate Drush with a Drupal module to make certain install tasks easier.

  1. In Aptana Studio, create a new folder named drush in the d7dev/sites/all/modules/views_slideshow folder.
  2. Next, copy the colorbox.drush.inc file from the modules/colorbox folder to the drush folder we just created, and rename it to views_slideshow.drush.inc.
  3. 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'); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required