function hook_hosting_tasks_alter in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.api.php \hook_hosting_tasks_alter()
- 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 function implements hook_hosting_tasks_alter()
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_tasks_alter in task/
hosting_task.module - Implements hook_hosting_tasks_alter()
2 invocations 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.
- hosting_task_load in task/
hosting_task.module - Implements hook_load().
File
- task/
hosting_task.api.php, line 66 - 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');
}
}