You are here

function block_refresh_demo in Block Refresh 7.2

1 call to block_refresh_demo()
block_refresh_demo_block_view in block_refresh_demo/block_refresh_demo.module
Implements hook_block_view().
3 string references to 'block_refresh_demo'
BlockRefreshSettingsTestCase::setUp in ./block_refresh.test
Sets up a Drupal site for running functional and integration tests.
block_refresh_demo_block_view in block_refresh_demo/block_refresh_demo.module
Implements hook_block_view().
block_refresh_demo_install in block_refresh_demo/block_refresh_demo.install
Implements hook_install.

File

block_refresh_demo/block_refresh_demo.module, line 39
: Demonstration Block for Block Refresh

Code

function block_refresh_demo() {
  $block['info'] = array(
    '#type' => 'markup',
    '#markup' => '<p>The number below is the unix timestamp when this block was generated. If block refresh is set up correctly this number will change when the block is refreshed. By default this will refresh every 10 seconds.</p>',
  );
  $block['time'] = array(
    '#type' => 'markup',
    '#markup' => '<p><strong>' . time() . '</strong></p>',
  );
  return $block;
}