You are here

function hosting_site_access in Hosting 5

Same name and namespace in other branches
  1. 6.2 site/hosting_site.module \hosting_site_access()

Implementation of hook_access

File

site/hosting_site.module, line 86

Code

function hosting_site_access($op, $node) {
  switch ($op) {
    case 'create':
      return user_access('create site');
      break;
    case 'update':
      return user_access('edit site');
      break;
    case 'delete':
      return user_access('delete site');
      break;
    default:
      break;
  }
}