You are here

function asset_perm in Asset 6

Same name and namespace in other branches
  1. 5.2 asset.module \asset_perm()
  2. 5 asset.module \asset_perm()

Implementation of hook_perm().

File

./asset.module, line 91

Code

function asset_perm() {
  $perms = array(
    'create assets',
    'administer assets',
  );
  foreach (module_implements('asset_type') as $module) {
    foreach (module_invoke($module, 'asset_type', 'info') as $delta => $type) {
      $perms[] = 'create ' . $delta . ' assets';
    }
  }
  return $perms;
}