You are here

function demo_reset_block_view in Demonstration site (Sandbox / Snapshot) 7

Same name and namespace in other branches
  1. 6 demo_reset.module \demo_reset_block_view()

Implements hook_block_view().

File

demo_reset/demo_reset.module, line 129
Demonstration site reset module.

Code

function demo_reset_block_view($delta = '') {
  if (!variable_get('demo_dump_cron', '')) {
    return array();
  }
  $block = array(
    'subject' => t('Reset demo'),
    'content' => drupal_get_form('demo_reset_block_form'),
  );
  return $block;
}