function theme_date_text_parts

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 date.theme theme_date_text_parts($variables)
cle7 date.theme theme_date_text_parts($variables)
elmsmedia7 date.theme theme_date_text_parts($variables)
icor7 date.theme theme_date_text_parts($variables)
meedjum_blog7 date.theme theme_date_text_parts($variables)
mooc7 date.theme theme_date_text_parts($variables)

Returns HTML for the text/select options for date parts in a table.

Related topics

2 string references to the theme hook from theme_date_text_parts()

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.

date_theme in sites/all/modules/ulmus/date/date.module
Implements hook_theme().
_date_field_widget_settings_form in sites/all/modules/ulmus/date/date_admin.inc
Helper function for date_field_widget_settings_form().

File

sites/all/modules/ulmus/date/date.theme, line 391
Theme functions.

Code

function theme_date_text_parts($variables) {
  $element = $variables['element'];
  $rows = array();
  foreach (date_granularity_names() as $key => $part) {
    if ($element[$key]['#type'] == 'hidden') {
      $rows[] = drupal_render($element[$key]);
    }
    else {
      $rows[] = array($part, drupal_render($element[$key][0]), drupal_render($element[$key][1]));
    }
  }
  if ($element['year']['#type'] == 'hidden') {
    return implode($rows) . drupal_render_children($element);
  }
  else {
    $header = array(t('Date part'), t('Select list'), t('Text field'));
    return theme('table', array('header' => $header, 'rows' => $rows)) . drupal_render_children($element);
  }
}
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.