You are here

function hosting_block_view in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 hosting.module \hosting_block_view()

Implements hook_block_view().

File

./hosting.module, line 582
Hosting module.

Code

function hosting_block_view($delta) {
  $out = NULL;
  switch ($delta) {
    case 'hosting_queues':
      $out = array(
        'title' => t('Queues'),
        'content' => hosting_queue_block(),
      );
      break;
    case 'hosting_queues_summary':
      $out = array(
        'title' => t('Queues summary'),
        'content' => hosting_queue_summary_block(),
      );
      break;
    case 'hosting_supporting_aegir':
      $out = array(
        'title' => t('Support Aegir'),
        'content' => hosting_supporting_aegir_block(),
      );
      break;
  }
  return $out;

  // @todo where is 'hosting_summary'?
}