You are here

imagecache_autorotate.install in ImageCache Actions 6

Ensure Imagecache recognises our new actions, per http://drupal.org/node/290101.

File

imagecache_autorotate.install
View source
<?php

/**
 * @file
 * Ensure Imagecache recognises our new actions, per http://drupal.org/node/290101.
 */
function imagecache_autorotate_enable() {
  if (function_exists('imagecache_action_definitions')) {
    imagecache_action_definitions(TRUE);
  }
  cache_clear_all('imagecache_actions', 'cache');
}
function imagecache_autorotate_disable() {
  if (function_exists('imagecache_action_definitions')) {
    imagecache_action_definitions(TRUE);
  }
  cache_clear_all('imagecache_actions', 'cache');
}

Functions

Namesort descending Description
imagecache_autorotate_disable
imagecache_autorotate_enable @file Ensure Imagecache recognises our new actions, per http://drupal.org/node/290101.