mobile_switch.install in Mobile Switch 7
Same filename and directory in other branches
Install, update and uninstall functions for the Mobile Switch module.
File
mobile_switch.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Mobile Switch module.
*/
/**
* Implements hook_uninstall().
*/
function mobile_switch_uninstall() {
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', '%mobile_switch_%', 'LIKE')
->execute()
->fetchAll();
foreach ($results as $result) {
variable_del($result->name);
}
}
Functions
Name![]() |
Description |
---|---|
mobile_switch_uninstall | Implements hook_uninstall(). |