You are here

function theme_date_part_label_year in Date 7

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

Format labels for each date part in a date_select.

Parameters

$part_type: the type of field used for this part, 'textfield' .or 'select'

$element: An associative array containing the properties of the element. Properties used: title, value, options, description, required and attributes.

File

date_api/theme/theme.inc, line 113
Theme files for Date API.

Code

function theme_date_part_label_year($vars) {
  $part_type = $vars['part_type'];
  $element = $vars['element'];
  return t('Year', array(), array(
    'context' => 'datetime',
  ));
}