imagecache_actions.install 644 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Warn about the soft dependency on system stream wrapper module.
  4. */
  5. function imagecache_actions_update_7001(&$sandbox) {
  6. drupal_set_message(t("Imagecache Actions: If you use the module:// notation anywhere in an image effect, you must now install the !module module.",
  7. array('!module' => l('System Stream Wrapper', 'https://drupal.org/project/system_stream_wrapper', array('external' => TRUE)))), 'warning');
  8. }
  9. /**
  10. * Clear image styles cache.
  11. */
  12. function imagecache_actions_update_7002(&$sandbox) {
  13. // We need to clear this cache as many effect callbacks have been renamed.
  14. cache_clear_all('image_styles', 'cache');
  15. }