You are here

function imagecache_perm in ImageCache 5.2

Same name and namespace in other branches
  1. 5 imagecache.module \imagecache_perm()
  2. 6.2 imagecache.module \imagecache_perm()

Implementation of hook_perm().

File

./imagecache.module, line 40
Dynamic image resizer and image cacher.

Code

function imagecache_perm() {
  $perms = array(
    'administer imagecache',
    'flush imagecache',
  );
  foreach (imagecache_presets() as $preset) {
    $perms[] = 'view imagecache ' . $preset['presetname'];
  }
  return $perms;
}