function hosting_context_name in Hostmaster (Aegir) 6
Return the hosting context name for a node.
Parameters
$nid: The nid of the node to get the provision context name for.
Return value
The provision context name associated with the specified node, will be prefixed with '@'.
6 calls to hosting_context_name()
- drush_hosting_clone_pre_hosting_task in modules/
hosting/ clone/ hosting_clone.drush.inc - @file Drush include for the site cloning module.
- drush_hosting_migrate_pre_hosting_task in modules/
hosting/ migrate/ hosting_migrate.drush.inc - @file Implement drush hooks for the hosting migrate module.
- hook_hosting_TASK_OBJECT_context_options in modules/
hosting/ hosting.api.php - Add or change context options before a hosting task runs.
- hosting_cron_queue in modules/
hosting/ cron/ hosting_cron.module - Implementation of hosting_QUEUE_TYPE_queue().
- hosting_hosting_platform_context_options in modules/
hosting/ platform/ hosting_platform.drush.inc - Implementation of hook_hosting_TASK_OBJECT_context_options().
3 string references to 'hosting_context_name'
- hostingService_dns_master::context_options in modules/
hosting/ dns/ hosting_dns.service.inc - hostingService_http_cluster::context_options in modules/
hosting/ web_cluster/ hosting_web_cluster.service.inc - hostingService_http_pack::context_options in modules/
hosting/ web_pack/ hosting_web_pack.service.inc
File
- modules/
hosting/ hosting.module, line 852 - Hosting module.
Code
function hosting_context_name($nid) {
$node = node_load($nid);
return '@' . $node->hosting_name;
}