poll_block_info

Versions
7
poll_block_info()

Implements hook_block_info().

Code

modules/poll/poll.module, line 125

<?php
function poll_block_info() {
  if (user_access('access content')) {
    $blocks['recent']['info'] = t('Most recent poll');
    return $blocks;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.