You are here

function hosting_task_get_guarded_nodes in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 task/hosting_task.module \hosting_task_get_guarded_nodes()

Invoke hooks to build a list of NIDs to guard.

1 call to hosting_task_get_guarded_nodes()
hosting_task_dangerous_task_is_allowed in task/hosting_task.module
Guard against destructive tasks running on guarded Aegir entities.

File

task/hosting_task.module, line 1954
Web server node type is defined here.

Code

function hosting_task_get_guarded_nodes() {
  $guarded_nids =& drupal_static(__FUNCTION__);
  if (!isset($guarded_nids)) {

    // Invoke hook_hosting_task_guarded_nodes().
    $guarded_nids = module_invoke_all('hosting_task_guarded_nodes');
    drupal_alter('hosting_task_guarded_nodes', $guarded_nids);
  }
  return $guarded_nids;
}