Commit 8ca99412 authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards

parent ff6e1918
...@@ -935,13 +935,13 @@ function uw_ct_event_page_build() { ...@@ -935,13 +935,13 @@ function uw_ct_event_page_build() {
if (isset($path[1])) { if (isset($path[1])) {
$breadcrumb = drupal_get_breadcrumb(); $breadcrumb = drupal_get_breadcrumb();
if (isset($breadcrumb[1])) { if (isset($breadcrumb[1])) {
// Set 'Events' breadcrumb for events/calendar or events/day // Set 'Events' breadcrumb for events/calendar or events/day.
if ($path[1] == 'calendar' || $path[1] == 'day') { if ($path[1] == 'calendar' || $path[1] == 'day') {
$breadcrumb[1] = l('Events', 'events'); $breadcrumb[1] = l(t('Events'), 'events');
} }
elseif ($path[1] == 'archive' && isset($path[2])) { elseif ($path[1] == 'archive' && isset($path[2])) {
// Set 'Events' breadcrumb for events/archive/[year]. // Set 'Events' breadcrumb for events/archive/[year].
$breadcrumb[1] = l('Events', 'events'); $breadcrumb[1] = l(t('Events'), 'events');
// Set 'Events>[Year]' breadcrumb for events/archive/[year-month] // Set 'Events>[Year]' breadcrumb for events/archive/[year-month]
// if $path[2] matches yyyy-mm or yyyy-m. // if $path[2] matches yyyy-mm or yyyy-m.
if (preg_match('/^(\d{4})-(\d{1,2})$/', $path[2], $matches)) { if (preg_match('/^(\d{4})-(\d{1,2})$/', $path[2], $matches)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment