function theme_date_text

cis7 theme.inc theme_date_text($variables)
cle7 theme.inc theme_date_text($variables)
elmsmedia7 theme.inc theme_date_text($variables)
icor7 theme.inc theme_date_text($variables)
meedjum_blog7 theme.inc theme_date_text($variables)
mooc7 theme.inc theme_date_text($variables)

Returns HTML for a date text element.

16 string references to the theme hook from theme_date_text()

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.

bef_test_content_field_default_field_instances in sites/all/modules/ulmus/better_exposed_filters/tests/bef_test_content/bef_test_content.features.field_instance.inc
Implements hook_field_default_field_instances().
better_exposed_filters_exposed_form_plugin::exposed_form_alter in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc
Tweak the exposed filter form to show Better Exposed Filter options.
date_all_day_field_widget_info_alter in sites/all/modules/ulmus/date/date_all_day/date_all_day.module
Implements hook_field_widget_info_alter().
date_api_theme in sites/all/modules/ulmus/date/date_api/date_api.module
Implements hook_theme().
date_combo_element_process in sites/all/modules/ulmus/date/date_elements.inc
Process an individual date element.

... See full list

File

sites/all/modules/ulmus/date/date_api/theme/theme.inc, line 43
Theme files for Date API.

Code

function theme_date_text($variables) {
  $element = $variables['element'];
  $attributes = !empty($element['#wrapper_attributes']) ? $element['#wrapper_attributes'] : array('class' => array());
  $attributes['class'][] = 'container-inline-date';
  // If there is no description, the floating date elements need some extra
  // padding below them.
  $wrapper_attributes = array('class' => array('date-padding'));
  if (empty($element['date']['#description'])) {
    $wrapper_attributes['class'][] = 'clearfix';
  }
  // Add an wrapper to mimic the way a single value field works, for ease in
  // using #states.
  if (isset($element['#children'])) {
    $element['#children'] = '<div id="' . $element['#id'] . '" ' . drupal_attributes($wrapper_attributes) . '>' . $element['#children'] . '</div>';
  }
  return '<div ' . drupal_attributes($attributes) . '>' . theme('form_element', $element) . '</div>';
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.