function theme_date

7.x theme_date($variables)
5.x theme_date($element)
6.x theme_date($element)

Returns HTML for a date selection form element.


$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

47 string references to the theme hook from theme_date()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

CommentPreviewTest::testCommentEditPreviewSave in drupal/modules/comment/comment.test
Test comment edit, preview, and save.
comment_form in drupal/modules/comment/comment.module
Generate the basic commenting form, for appending to a node or display on a separate page.
comment_form_validate in drupal/modules/comment/comment.module
Validate comment form submissions.
comment_tokens in drupal/modules/comment/
Implements hook_tokens().
comment_token_info in drupal/modules/comment/
Implements hook_token_info().

... See full list


drupal/includes/, line 2974
Functions for form and batch generation and processing.


function theme_date($variables) {
  $element = $variables['element'];

  $attributes = array();
  if (isset($element['#id'])) {
    $attributes['id'] = $element['#id'];
  if (!empty($element['#attributes']['class'])) {
    $attributes['class'] = (array) $element['#attributes']['class'];
  $attributes['class'][] = 'container-inline';

  return '<div' . drupal_attributes($attributes) . '>' . drupal_render_children($element) . '</div>';