function hook_hosting_task_guarded_nodes

7.x-3.x hosting.api.php hook_hosting_task_guarded_nodes()

Return a list of Aegir entities to guard against destructive tasks.

@see: hook_hosting_task_dangerous_tasks(). @see: hook_hosting_task_guarded_nodes_alter();

Related topics

1 function implements hook_hosting_task_guarded_nodes()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

hosting_task_hosting_task_guarded_nodes in task/hosting_task.module
Implements hook_hosting_task_guarded_nodes().
1 invocation of hook_hosting_task_guarded_nodes()
hosting_task_get_guarded_nodes in task/hosting_task.module
Invoke hooks to build a list of NIDs to guard.


./hosting.api.php, line 371
Hooks provided by the hosting module, and some other random ones.


function hook_hosting_task_guarded_nodes() {
  // Guard against destructive tasks run on the hostmaster site or platform.
  $hostmaster_site_nid = hosting_get_hostmaster_site_nid();
  $hostmaster_platform_nid = hosting_get_hostmaster_platform_nid();
  $guarded_nids = array(
  return $guarded_nids;