You are here

function imageapi_optimize_update_7101 in Image Optimize (or ImageAPI Optimize) 7.2

Remove all imageapi optimize variables.

File

./imageapi_optimize.install, line 232
Install, update and uninstall functions

Code

function imageapi_optimize_update_7101() {
  if (variable_get('imageapi_optimize_toolkit')) {
    variable_set('image_toolkit', variable_get('imageapi_optimize_toolkit', 'gd'));
  }
  foreach ($GLOBALS['conf'] as $name => $value) {
    if (strpos($name, 'imageapi_optimize_') === 0) {
      variable_del($name);
    }
  }
}