imagecache_canvasactions.install 848 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file Set up new canvas actions. Tell imagecache.module about them
  4. */
  5. /**
  6. * Need to flush the cache when this module is enabled or disabled
  7. */
  8. function imagecache_canvasactions_install() {
  9. if (function_exists('imagecache_action_definitions') ) {
  10. imagecache_action_definitions(TRUE);
  11. }
  12. cache_clear_all('imagecache_actions', 'cache');
  13. drupal_set_message(t('Additional image style actions should now be available in the presets !settings_link', array('!settings_link' => l(t('settings'), 'admin/config/media/image-styles'))));
  14. }
  15. /**
  16. * @todo Please document this function.
  17. * @see http://drupal.org/node/1354
  18. */
  19. function imagecache_canvasactions_uninstall() {
  20. if (function_exists('imagecache_action_definitions') ) {
  21. imagecache_action_definitions(TRUE);
  22. }
  23. cache_clear_all('imagecache_actions', 'cache');
  24. }