You are here

function theme_date_part_hour_prefix in Date 6

Same name and namespace in other branches
  1. 5.2 date_api_elements.inc \theme_date_part_hour_prefix()
  2. 6.2 theme/theme.inc \theme_date_part_hour_prefix()
  3. 7.3 date_api/theme/theme.inc \theme_date_part_hour_prefix()
  4. 7 date_api/theme/theme.inc \theme_date_part_hour_prefix()
  5. 7.2 date_api/theme/theme.inc \theme_date_part_hour_prefix()

Functions to separate date parts in form.

Separators float up to the title level for elements with titles, so won't work if this element has titles above the element date parts.

1 theme call to theme_date_part_hour_prefix()
date_parts_element in ./date_api_elements.inc
Create form elements for one or more date parts.

File

./date_api_elements.inc, line 648
Date API elements themes and validation. This file is only included during the edit process to reduce memory usage.

Code

function theme_date_part_hour_prefix($element) {
  if ($element['#date_label_position'] != 'above') {
    return '<span class="form-item date-spacer">&nbsp;-&nbsp;</span>';
  }
}