You are here

function mobile_switch_uninstall in Mobile Switch 7.2

Same name and namespace in other branches
  1. 6 mobile_switch.install \mobile_switch_uninstall()
  2. 7 mobile_switch.install \mobile_switch_uninstall()

Implements hook_uninstall().

File

./mobile_switch.install, line 71
Install, update and uninstall functions for the Mobile Switch module.

Code

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