You are here

function hook_hosting_task_dangerous_tasks in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 hosting.api.php \hook_hosting_task_dangerous_tasks()

Return a list of dangerous tasks.

These tasks will be blocked on guarded noded. @see: hook_hosting_task_guarded_nodes(). @see: hook_hosting_task_dangerous_tasks_alter().

Related topics

1 function implements hook_hosting_task_dangerous_tasks()

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_dangerous_tasks in task/hosting_task.module
Implements hook_hosting_task_dangerous_tasks().
1 invocation of hook_hosting_task_dangerous_tasks()
hosting_task_get_dangerous_tasks in task/hosting_task.module
Invoke hooks to build a list of dangerous tasks.

File

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

Code

function hook_hosting_task_dangerous_tasks() {
  $dangerous_tasks = array(
    'disable',
    'delete',
  );
  return $dangerous_tasks;
}