function advpoll_block in Advanced Poll 6.2
Same name and namespace in other branches
- 5 advpoll.module \advpoll_block()
- 6.3 advpoll.module \advpoll_block()
- 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;
}
}