You are here

function hosting_task_get_dangerous_tasks in Hosting 7.4

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

Invoke hooks to build a list of dangerous tasks.

1 call to hosting_task_get_dangerous_tasks()
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 2021
Web server node type is defined here.

Code

function hosting_task_get_dangerous_tasks() {
  $dangerous_tasks =& drupal_static(__FUNCTION__);
  if (!isset($dangerous_tasks)) {

    // Invoke hook_hosting_task_dangerous_tasks().
    $dangerous_tasks = module_invoke_all('hosting_task_dangerous_tasks');
    drupal_alter('hosting_task_dangerous_tasks', $dangerous_tasks);
  }
  return $dangerous_tasks;
}