You are here

imagecache_coloractions.install in ImageCache Actions 6

Set up new color actions. Tell imagecache.module about them

File

imagecache_coloractions.install
View source
<?php

/**
 * @file Set up new color actions. Tell imagecache.module about them
 */

/**
 * Need to flush the cache when this module is enabled or disabled
 */
function imagecache_coloractions_install() {
  if (function_exists('imagecache_action_definitions')) {
    imagecache_action_definitions(TRUE);
  }
  cache_clear_all('imagecache_actions', 'cache');
  drupal_set_message(t('Additional imagecache actions should now be available in the presets !settings_link', array(
    '!settings_link' => l(t('settings'), 'admin/build/imagecache'),
  )));
}
function imagecache_coloractions_uninstall() {
  if (function_exists('imagecache_action_definitions')) {
    imagecache_action_definitions(TRUE);
  }
  cache_clear_all('imagecache_actions', 'cache');
}

Functions

Namesort descending Description
imagecache_coloractions_install Need to flush the cache when this module is enabled or disabled
imagecache_coloractions_uninstall