function theme_locale_date_format_form
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
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!locale!locale.admin.inc/function/theme_locale_date_format_form/7.x