You are here

function hosting_queues_get_arguments in Hosting 5

File

./hosting.queues.inc, line 180

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;
}