diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index 1566c80..0358c43 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -1831,59 +1831,6 @@ function theme_system_themes_page($variables) { } /** - * Displays the date format strings overview page. - */ -function system_date_time_formats() { - $header = array( - array('data' => t('Machine name'), 'field' => 'machine_name'), - array('data' => t('Name'), 'field' => 'name'), - array('data' => t('Pattern'), 'field' => 'pattern'), - array('data' => t('Operations')) - ); - $rows = array(); - - $formats = system_get_date_formats(); - - if (!empty($formats)) { - foreach ($formats as $date_format_id => $format_info) { - // Do not display date formats that are locked. - if (empty($format_info['locked'])) { - $row = array(); - $row[] = array('data' => $date_format_id); - $row[] = array('data' => $format_info['name']); - $row[] = array('data' => format_date(REQUEST_TIME, $date_format_id)); - - // Prepare Operational links. - $links = array(); - $links['edit'] = array( - 'title' => t('Edit'), - 'href' => 'admin/config/regional/date-time/formats/' . $date_format_id . '/edit', - ); - $links['delete'] = array( - 'title' => t('Delete'), - 'href' => 'admin/config/regional/date-time/formats/' . $date_format_id . '/delete', - ); - $row['operations'] = array('data' => array( - '#type' => 'operations', - '#links' => $links, - )); - - $rows[] = $row; - } - } - } - - $build['date_formats_table'] = array( - '#theme' => 'table', - '#header' => $header, - '#rows' => $rows, - '#empty' => t('No custom date formats available. Add date format.', array('@link' => url('admin/config/regional/date-time/formats/add'))), - ); - - return $build; -} - -/** * Allow users to add additional date formats. * * @param string $date_format_id diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 7568ee9..30581a9 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -881,7 +881,7 @@ function system_menu() { 'title' => 'Date and time formats', 'description' => 'Configure display format strings for date and time.', 'route_name' => 'system_date_time_formats', - 'weights' => -9, + 'weight' => -9, ); $items['admin/config/regional/date-time/formats/add'] = array( 'title' => 'Add format',