You are here

function hosting_available_tasks in Hostmaster (Aegir) 6

User-driven task descriptions

This is the list of tasks that can be invoked by the user. This doesn't check permissions or relevance of the tasks.

Modules can extend this list using hook_hosting_tasks()

See also

hook_hosting_tasks()

hosting_task_menu_access()

8 calls to hosting_available_tasks()
drush_hosting_task_validate in modules/hosting/task.hosting.inc
Validate hook for the hosting-task Drush command.
hosting_site_list_form in modules/hosting/site/hosting_site.module
Create a form for building a list of sites. @TODO Add ability to filter by additional fields
hosting_site_list_form_submit in modules/hosting/site/hosting_site.module
Process hosting_site_list form submissions.
hosting_task_confirm_form in modules/hosting/task/hosting_task.module
Implementation of hook_form().
hosting_task_fetch_tasks in modules/hosting/task/hosting_task.module

... See full list

File

modules/hosting/task/hosting_task.module, line 556
Web server node type is defined here.

Code

function hosting_available_tasks($type, $reset = FALSE) {
  static $cache = array();
  if (!sizeof($cache) || $reset) {
    $cache = module_invoke_all('hosting_tasks');
    drupal_alter('hosting_tasks', $cache);
  }
  return $cache[$type];
}