You are here

function locale_date_format_language_overview_page in Drupal 7

Display edit date format links for each language.

1 string reference to 'locale_date_format_language_overview_page'
locale_menu in modules/locale/locale.module
Implements hook_menu().

File

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

Code

function locale_date_format_language_overview_page() {
  $header = array(
    t('Language'),
    array(
      'data' => t('Operations'),
      'colspan' => '2',
    ),
  );

  // Get list of languages.
  $languages = locale_language_list('native');
  foreach ($languages as $langcode => $info) {
    $row = array();
    $row[] = $languages[$langcode];
    $row[] = l(t('edit'), 'admin/config/regional/date-time/locale/' . $langcode . '/edit');
    $row[] = l(t('reset'), 'admin/config/regional/date-time/locale/' . $langcode . '/reset');
    $rows[] = $row;
  }
  return theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
}