image_effects_text.install 742 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @file Set up new text effects.
  4. *
  5. * @todo: is this cache we are clearing still in use?
  6. */
  7. /**
  8. * Implements hook_install().
  9. *
  10. * Need to flush the cache when this module is enabled or disabled.
  11. */
  12. function image_effects_text_install() {
  13. cache_clear_all('imagecache_actions', 'cache');
  14. drupal_set_message(t('Additional image effects to add text should now be available in the effects list on !settings_link', array('!settings_link' => l(t('settings'), 'admin/config/media/image-styles'))));
  15. }
  16. /**
  17. * Implements hook_uninstall().
  18. *
  19. * This hook implementation clears the imagecache_actions cache.
  20. */
  21. function image_effects_text_uninstall() {
  22. cache_clear_all('imagecache_actions', 'cache');
  23. }