function hosting_package_access in Hosting 5
Same name and namespace in other branches
- 6.2 package/hosting_package.module \hosting_package_access()
File
- package/
hosting_package.module, line 73
Code
function hosting_package_access($op, $node) {
switch ($op) {
case 'create':
return user_access('create package');
break;
case 'view':
return user_access('view package');
break;
case 'update':
return user_access('edit package');
break;
case 'delete':
return user_access('delete package');
break;
default:
break;
}
}