imagecache_actions.module 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @file Home for the most basic imagecache_action routines, for re-use
  4. */
  5. /**
  6. * Need to register the theme functions we expect to use
  7. */
  8. function imagecache_actions_theme() {
  9. return array(
  10. 'imagecacheactions_rgb_form' => array(
  11. 'file' => 'utility-color.inc',
  12. 'render element' => 'form',
  13. ),
  14. 'imagecacheactions_rgb' => array(
  15. 'file' => 'utility-color.inc',
  16. 'variables' => array('rgb' => NULL),
  17. ),
  18. );
  19. }
  20. /**
  21. * Implements hook_stream_wrappers().
  22. */
  23. function imagecache_actions_stream_wrappers() {
  24. $wrappers = array(
  25. 'module' => array(
  26. 'name' => t('Module files (read-only)'),
  27. 'class' => 'ImageCacheActionsModuleStreamWrapper',
  28. 'description' => t('Module files (read-only).'),
  29. 'type' => STREAM_WRAPPERS_LOCAL | STREAM_WRAPPERS_READ_VISIBLE,
  30. ),
  31. );
  32. return $wrappers;
  33. }