You are here

function hosting_site_add_by_platform_access in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 site/hosting_site.module \hosting_site_add_by_platform_access()
  2. 7.3 site/hosting_site.module \hosting_site_add_by_platform_access()

Access callback for Site add by platform.

1 string reference to 'hosting_site_add_by_platform_access'
hosting_site_menu in site/hosting_site.module
Implementation of hook_menu()

File

site/hosting_site.module, line 426

Code

function hosting_site_add_by_platform_access($node) {
  return $node->type == 'platform' && $node->platform_status == HOSTING_PLATFORM_ENABLED && node_access('create', 'site');
}