You are here

function jquery_countdown_theme in jQuery Countdown 6

Same name and namespace in other branches
  1. 7.2 jquery_countdown.module \jquery_countdown_theme()
  2. 7 jquery_countdown.module \jquery_countdown_theme()

Implementation of hook_theme(). jquery_countdown: you can use this theme function in own module or template to display a countdown...

Example usage: echo theme('jquery_countdown', array( 'since' => date("F d, Y g:i a", mktime(0,0,0,0,0,2009)), 'format' => 'YOWDHMS', 'description' => t('Since New Year'), ));

jquery_countdown_layout: used to provide a configurable way of jquery.countdown layouts

File

./jquery_countdown.module, line 208
provides the jquery_countdown theme function and serversync callback

Code

function jquery_countdown_theme($existing, $type, $theme, $path) {
  return array(
    'jquery_countdown' => array(
      'arguments' => array(
        'options' => NULL,
        'content' => NULL,
        'id' => NULL,
      ),
      'file' => 'jquery_countdown.theme.inc',
    ),
    'jquery_countdown_layout' => array(
      'arguments' => array(
        'jcid' => 'jquery_countdown',
      ),
      'template' => 'jquery-countdown-layout',
      'file' => 'jquery_countdown.theme.inc',
    ),
  );
}