You are here

function hms_field_theme in HMS Field 8

Same name and namespace in other branches
  1. 7 hms_field.module \hms_field_theme()

Implements hook_theme().

File

./hms_field.module, line 29
Contains hms_field.module..

Code

function hms_field_theme() {
  $theme = array(
    'hms' => array(
      'variables' => array(
        'value' => 0,
        'format' => 'h:mm',
        'leading_zero' => TRUE,
        'running_since' => 0,
        'offset' => 0,
        'default_value' => 0,
      ),
    ),
    'hms_natural_language' => array(
      'variables' => array(
        'value' => 0,
        'format' => 'w:d:h:m:s',
        'separator' => ', ',
        'last_separator' => ' and ',
      ),
    ),
  );
  return $theme;
}