imagecache_autorotate.install 674 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Ensure Imagecache recognises our new actions, per http://drupal.org/node/290101.
  5. */
  6. /**
  7. * @todo Please document this function.
  8. * @see http://drupal.org/node/1354
  9. */
  10. function imagecache_autorotate_enable() {
  11. if (function_exists('imagecache_action_definitions') ) {
  12. imagecache_action_definitions(TRUE);
  13. }
  14. cache_clear_all('imagecache_actions', 'cache');
  15. }
  16. /**
  17. * @todo Please document this function.
  18. * @see http://drupal.org/node/1354
  19. */
  20. function imagecache_autorotate_disable() {
  21. if (function_exists('imagecache_action_definitions') ) {
  22. imagecache_action_definitions(TRUE);
  23. }
  24. cache_clear_all('imagecache_actions', 'cache');
  25. }