You are here

function mobile_detect_import_uninstall in Mobile Switch 7.2

Implements hook_uninstall().

File

modules/mobile_detect_import/mobile_detect_import.install, line 10
Install, update and uninstall functions for the Mobile Detect Import module.

Code

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);
  }
}