function hosting_web_server_access in Hosting 5
File
- web_server/
hosting_web_server.module, line 131 - Web server node type is defined here.
Code
function hosting_web_server_access($op, $node) {
if (!hosting_feature('web_server')) {
return FALSE;
}
switch ($op) {
case 'create':
return user_access('create web server');
break;
case 'view':
return user_access('view web server');
break;
case 'update':
return user_access('edit web server');
break;
case 'delete':
return user_access('delete web server');
break;
default:
break;
}
}