You are here

imageeditor_inline.install in Image Editor 7

Install and uninstall functions for Image Editor Inline module.

File

imageeditor_inline/imageeditor_inline.install
View source
<?php

/**
 * @file
 * Install and uninstall functions for Image Editor Inline module.
 */

/**
 * Implements hook_uninstall().
 */
function imageeditor_inline_uninstall() {

  // Removes all variables that start with "imageeditor_inline_".
  $results = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('name', 'imageeditor_inline_%', 'LIKE')
    ->execute();
  foreach ($results as $result) {
    variable_del($result->name);
  }
}

Functions