You are here

function hosting_queue_block in Hostmaster (Aegir) 6

Build a block of the hosting queues.

See also

hosting_TASK_SINGULAR_summary()

1 call to hosting_queue_block()
hosting_block in modules/hosting/hosting.module
Implementation of hook_block().

File

modules/hosting/hosting.module, line 393
Hosting module.

Code

function hosting_queue_block() {
  if (user_access('access task logs')) {
    $queues = hosting_get_queues();
    $output = '';
    foreach ($queues as $queue => $info) {
      $func = 'hosting_' . $info['singular'] . '_summary';
      if (function_exists($func)) {
        $output .= $func();
      }
    }
    return $output;
  }
}