uc_termsofservice.install in Ubercart Terms of Service 7
Same filename and directory in other branches
Install, update, and uninstall functions for the uc_termsofservice module.
File
uc_termsofservice.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the uc_termsofservice module.
*/
/**
* Implements hook_uninstall().
*/
function uc_termsofservice_uninstall() {
// Remove all module variables from the database.
db_delete('variable')
->condition('name', db_like('uc_termsofservice_') . '%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');
}
/**
* Renames uc_termsofservice_checkout_ca to uc_termsofservice_checkout_rules.
*/
function uc_termsofservice_update_7100() {
variable_set('uc_termsofservice_checkout_rules', variable_get('uc_termsofservice_checkout_ca', FALSE));
variable_del('uc_termsofservice_checkout_ca');
}
Functions
Name![]() |
Description |
---|---|
uc_termsofservice_uninstall | Implements hook_uninstall(). |
uc_termsofservice_update_7100 | Renames uc_termsofservice_checkout_ca to uc_termsofservice_checkout_rules. |