You are here

function hosting_queue_block in Hosting 5

Same name and namespace in other branches
  1. 7.4 hosting.module \hosting_queue_block()
  2. 7.3 hosting.module \hosting_queue_block()
1 call to hosting_queue_block()
hosting_block in ./hosting.module

File

./hosting.module, line 284
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;
  }
}