You are here

function hosting_platform_access in Hosting 5

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \hosting_platform_access()

File

platform/hosting_platform.module, line 48
Platform node type definition

Code

function hosting_platform_access($op, $node) {
  if (!hosting_feature('platform')) {
    return FALSE;
  }
  switch ($op) {
    case 'create':
      return user_access('create platform');
      break;
    case 'update':
      return user_access('edit platform');
      break;
    case 'delete':
      return user_access('delete platform');
      break;
  }
}