function theme_date 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    Default theme implementations Functions and templates for the user interface to be implemented by themes. Form generation Functions to enable the processing and display of HTML forms.    File
 includes/form.inc, line 3062 Functions for form and batch generation and processing.  Code 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>';
}


    
{'path': 'public/docs/drupal~7/includes-form.inc/function/theme_date/7.x.html', 'source': 'DevDocs.IO'}