You are here

function hosting_queued_enable in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 queued/hosting_queued.install \hosting_queued_enable()
  2. 7.3 queued/hosting_queued.install \hosting_queued_enable()

Implementation of hook_enable().

File

queued/hosting_queued.install, line 6

Code

function hosting_queued_enable() {

  // Disable Aegir's dispatch of the tasks queue.
  variable_set('hosting_queue_tasks_enabled', FALSE);

  // Disable the predecessor of this module from the Aegir 1.x world
  module_disable(array(
    'hosting_queue_runner',
  ));
  drupal_uninstall_module('hosting_queue_runner');
}