Skip navigation
Help

theme_date

6 form.inc theme_date($element)
7 form.inc theme_date($variables)

Returns HTML for a date selection form element.

Parameters

$variables: An associative array containing:

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

Related topics

File

drupal/includes/form.inc, line 2797

Code

function theme_date($variables) {
  $element = $variables['element'];
  return '<div class="container-inline">' . drupal_render_children($element) . '</div>';
}