fabliip.drupal package

Module contents

Functions for Drupal sites.

The drupal_root environment variable is used in some functions of this module to run the commands in the correct directory. Make sure it is set to the root directory of your Drupal project.

This module requires drush to be installed on the remote server.


Clears the Drupal cache.


Runs a drush command on the server.

Requires the drupal_root environment variable to be set.


Enables and disables modules on the Drupal install to reflect the status of the modules.enabled/disabled files.

The optional site parameter allows you to have a multisite project with a global modules.enabled/disabled file and a site-specific modules.site.enabled/disabled file.


Enables or disables the maintenance mode.