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.

fabliip.drupal.clear_cache()[source]

Clears the Drupal cache.

fabliip.drupal.drush(command)[source]

Runs a drush command on the server.

Requires the drupal_root environment variable to be set.

fabliip.drupal.enable_disable_modules(site=None)[source]

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.

fabliip.drupal.set_maintenance_mode(enabled)[source]

Enables or disables the maintenance mode.