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