You are here

function hms_field_theme in HMS Field 7

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

Implements hook_theme().

File

./hms_field.module, line 278
Provides an hms_field functionality.

Code

function hms_field_theme($existing, $type, $theme, $path) {
  return 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 ',
      ),
    ),
  );
}