You are here

function form_styler_uninstall in jQuery form styler 7

Same name and namespace in other branches
  1. 7.2 form_styler.install \form_styler_uninstall()

Implements hook_uninstall().

File

./form_styler.install, line 67
Contains install and update functions for form_styler.

Code

function form_styler_uninstall() {

  // Delete variables from db.
  $variable_names = db_select('variable', 'v')
    ->condition('v.name', db_like('form_styler_') . '%', 'LIKE')
    ->fields('v', array(
    'name',
  ))
    ->execute()
    ->fetchCol();
  foreach ($variable_names as $variable_name) {
    variable_del($variable_name);
  }
}