theme_date

Definition

theme_date($element)
includes/form.inc, line 1637

Description

Format a date selection element.

Parameters

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

Return value

A themed HTML string representing the date selection boxes.

Related topics

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Form generationFunctions to enable the processing and display of HTML forms.

Code

<?php
function theme_date($element) {
  return theme('form_element', $element, '<div class="container-inline">' . $element['#children'] . '</div>');
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.