You are here

function hook_hosting_tasks_alter in Hostmaster (Aegir) 6

Alter front-end tasks defined by other modules.

Parameters

$tasks: An array of tasks defined by other modules. Keys of the outer array are the types of objects that the tasks operate on, e.g. 'site', 'platform' or 'server', values are arrays of the tasks that apply to those objects.

See also

hook_hosting_tasks

Related topics

1 invocation of hook_hosting_tasks_alter()
hosting_available_tasks in modules/hosting/task/hosting_task.module
User-driven task descriptions

File

modules/hosting/task/hosting_task.api.php, line 63
Hooks provided by the hosting tasks module.

Code

function hook_hosting_tasks_alter(&$tasks) {

  // Change the title of the site's clone task.
  if (isset($tasks['site']['clone'])) {
    $tasks['site']['clone']['title'] = t('Site clone');
  }
}