function asset_perm in Asset 5
Same name and namespace in other branches
- 5.2 asset.module \asset_perm()
- 6 asset.module \asset_perm()
Implementation of hook_perm().
File
- ./
asset.module, line 100
Code
function asset_perm() {
$perms = array(
'create assets',
'administer assets',
);
foreach (module_implements('asset_type') as $module) {
$types = module_invoke($module, 'asset_type', 'info');
foreach ($types as $delta => $type) {
$perms[] = 'create ' . $delta . ' assets';
}
}
return $perms;
}