You are here

function hosting_get_hostmaster_platform_nid in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 hosting.inc \hosting_get_hostmaster_platform_nid()

Helper function to get the node ID of the Aegir platform.

2 calls to hosting_get_hostmaster_platform_nid()
hook_hosting_task_guarded_nodes in ./hosting.api.php
Return a list of Aegir entities to guard against destructive tasks.
hosting_platform_hosting_task_guarded_nodes in platform/hosting_platform.module
Implements hook_hosting_task_guarded_nodes().

File

./hosting.inc, line 115
General purpose Hosting module functions.

Code

function hosting_get_hostmaster_platform_nid() {
  $hostmaster_site = node_load(hosting_get_hostmaster_site_nid());
  return $hostmaster_site->platform;
}