You are here

function hook_hosting_tasks_alter in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 task/hosting_task.api.php \hook_hosting_tasks_alter()
  2. 7.3 task/hosting_task.api.php \hook_hosting_tasks_alter()

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 task/hosting_task.module
Get a list of tasks that can be invoked by the user.

File

task/hosting_task.api.php, line 64
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');
  }
}