You are here

function jquery_countdown_timer_block_configure in jQuery Countdown Timer 7

Implements hook_block_configure().

File

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

Code

function jquery_countdown_timer_block_configure($delta) {
  $form = array();
  switch ($delta) {
    case 'jquery_countdown_timer':
      module_load_include('inc', 'date_api', 'date_api_elements');
      $form['jquery_countdown_timer_font_size'] = array(
        '#type' => 'textfield',
        '#title' => t('Timer font size'),
        '#default_value' => variable_get('jquery_countdown_timer_font_size', 28),
        '#size' => 3,
        '#maxlength' => 2,
      );
      $form['jquery_countdown_timer_date'] = array(
        '#type' => 'date_select',
        '#title' => t('Timer date'),
        '#default_value' => variable_get('jquery_countdown_timer_date', date('Y-m-d G:i:s')),
        '#date_format' => 'Y-m-d H:i',
      );
      break;
  }
  return $form;
}