You are here

function advpoll_block in Advanced Poll 6.2

Same name and namespace in other branches
  1. 5 advpoll.module \advpoll_block()
  2. 6.3 advpoll.module \advpoll_block()
  3. 6 advpoll.module \advpoll_block()

Implementation of hook_block().

File

./advpoll.module, line 251
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.

Code

function advpoll_block($op = 'list') {
  switch ($op) {
    case 'list':
      $blocks['latest_poll']['info'] = t('Latest poll');
      return $blocks;
    case 'view':
      $block['subject'] = t('Latest poll');
      $block['content'] = theme('advpoll_block_latest_poll');
      return $block;
  }
}