You are here

function jquery_countdown_timer_block_view in jQuery Countdown Timer 7

Implements hook_block_view().

File

./jquery_countdown_timer.module, line 74
This module provides block with a simple jQuery coundown

Code

function jquery_countdown_timer_block_view($delta = '', $edit = array()) {
  $block = array();
  switch ($delta) {
    case 'jquery_countdown_timer':
      $block['subject'] = 'Countdown';
      $block['content'] = array(
        '#markup' => theme('jquery_countdown_timer_container', array()),
        '#attached' => jquery_countdown_timer_attach(),
      );
      break;
  }
  return $block;
}