function hosting_get_hostmaster_platform_nid

7.x-3.x 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_task_hosting_task_guarded_nodes in task/hosting_task.module
Implements hook_hosting_task_guarded_nodes().

File

./hosting.inc, line 117
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;
}