function theme_locale_date_format_form

×

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 locale.admin.inc theme_locale_date_format_form($variables)
cle7 locale.admin.inc theme_locale_date_format_form($variables)
elmsmedia7 locale.admin.inc theme_locale_date_format_form($variables)
icor7 locale.admin.inc theme_locale_date_format_form($variables)
meedjum_blog7 locale.admin.inc theme_locale_date_format_form($variables)
mooc7 locale.admin.inc theme_locale_date_format_form($variables)

Returns HTML for a locale date format form.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

2 string references to the theme hook from theme_locale_date_format_form()

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.

locale_menu in modules/locale/locale.module
Implements hook_menu().
locale_theme in modules/locale/locale.module
Implements hook_theme().

File

modules/locale/locale.admin.inc, line 1285
Administration functions for locale.module.

Code

function theme_locale_date_format_form($variables) {
  $form = $variables['form'];
  $header = array(
    t('Date type'),
    t('Format'),
  );

  foreach (element_children($form['date_formats']) as $key) {
    $row = array();
    $row[] = $form['date_formats'][$key]['#title'];
    unset($form['date_formats'][$key]['#title']);
    $row[] = array('data' => drupal_render($form['date_formats'][$key]));
    $rows[] = $row;
  }

  $output = drupal_render($form['language']);
  $output .= theme('table', array('header' => $header, 'rows' => $rows));
  $output .= drupal_render_children($form);

  return $output;
}