function imagecache_perm in ImageCache 6.2
Same name and namespace in other branches
- 5.2 imagecache.module \imagecache_perm()
- 5 imagecache.module \imagecache_perm()
Implementation of hook_perm().
File
- ./
imagecache.module, line 55 - 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;
}