You are here

function advpoll_block_view in Advanced Poll 7

Same name and namespace in other branches
  1. 7.3 advpoll.module \advpoll_block_view()
  2. 7.2 advpoll.module \advpoll_block_view()

Implements hook_block_view().

File

./advpoll.module, line 223

Code

function advpoll_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'advpoll_recent':
      $block['subject'] = t('Most Recent Poll');
      $block['content'] = array(
        '#markup' => advpoll_get_recent(),
      );
      break;
    default:
      $block = advpoll_generate_block_view($block, $delta);
      break;
  }
  return $block;
}