hosting_queued.install in Hosting 7.3
Same filename and directory in other branches
Install, update and uninstall functions for the hosting_queued module.
File
queued/hosting_queued.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the hosting_queued module.
*
*/
/**
* Implements hook_enable().
*/
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_modules(array(
'hosting_queue_runner',
));
}
/**
* Implements hook_disable().
*/
function hosting_queued_disable() {
// Enable Aegir's dispatch of the tasks queue.
variable_set('hosting_queue_tasks_enabled', TRUE);
}
/**
* Implements hook_update_N().
*
* Rename the module variables to hosting_queued
*/
function hosting_queued_update_6200() {
$ret = array();
$ret[] = update_sql("UPDATE {variable} SET name = REPLACE(name, 'hosting_queue_runner', 'hosting_queued') WHERE name LIKE 'hosting_queue_runner%'");
return $ret;
}
/**
* Implements hook_update_N().
*
* Properly remove/uninstall the queue runner.
*/
function hosting_queued_update_6201() {
// Disable the predecessor of this module from the Aegir 1.x world
module_disable(array(
'hosting_queue_runner',
));
drupal_uninstall_module('hosting_queue_runner');
return array();
}
Functions
Name![]() |
Description |
---|---|
hosting_queued_disable | Implements hook_disable(). |
hosting_queued_enable | Implements hook_enable(). |
hosting_queued_update_6200 | Implements hook_update_N(). |
hosting_queued_update_6201 | Implements hook_update_N(). |