You are here

function hosting_queues_get_arguments in Hostmaster (Aegir) 6

Deprecated

this isn't called from anywhere, and nobody implements provision_args

Related topics

File

modules/hosting/hosting.queues.inc, line 182
This file defines an API for defining new queues.

Code

function hosting_queues_get_arguments($task) {
  $data = module_invoke_all('provision_args', $task, $task->task_type);
  foreach ($data as $key => $value) {
    if (substr($key, 0, 1) == '#') {
      $data[(int) str_replace('#', '', $key)] = $value;
      unset($data[$key]);
    }
  }
  ksort($data);
  return $data;
}