You are here

resmushit.install in reSmush.it image style optimizer 7

Same filename and directory in other branches
  1. 7.2 resmushit.install

Update, and uninstall functions for the reSmush.it module.

File

resmushit.install
View source
<?php

/**
 * @file
 * Update, and uninstall functions for the reSmush.it module.
 */

/**
 * Implements hook_uninstall().
 */
function resmushit_uninstall() {
  $query = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('name', db_like('resmushit') . '%', 'LIKE')
    ->execute();
  while ($variable = $query
    ->fetchAssoc()) {
    variable_del($variable['name']);
  }
}

Functions

Namesort descending Description
resmushit_uninstall Implements hook_uninstall().