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