You are here

function workbench_block_view in Workbench 7

Implements hook_block_view().

1 call to workbench_block_view()
workbench_display_render in plugins/content_types/workbench_display.inc

File

./workbench.module, line 107
Workbench module file for editorial workspaces.

Code

function workbench_block_view($delta = '') {
  $items = module_invoke_all('workbench_block');
  if (empty($items)) {
    return array();
  }
  $block = array(
    'subject' => '',
    'content' => array(
      '#markup' => theme('container', array(
        'element' => array(
          '#children' => implode('<br />', $items),
          '#attributes' => array(
            'class' => 'workbench-info-block',
          ),
        ),
      )),
      '#attached' => array(
        'css' => array(
          drupal_get_path('module', 'workbench') . '/css/workbench.block.css',
        ),
      ),
    ),
  );
  return $block;
}