You are here

function hosting_site_add_by_platform_access in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 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
Implements hook_menu().

File

site/hosting_site.module, line 481
Contains hook implementations for Hosting site module.

Code

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