Zen 7.x-3.x-dev, xxxx-xx-xx (development release)
---------------------------
+- #1079010: The secondary links heading, "Secondary menu", is wrong
- #1072302: Use element-focusable class for skip link accessibility
- #1072268: Zen theme doesn't load RTL styles
- #929630 by juan_g and akalata: URL for overriding stylesheets documentation has changed
}
/**
+ * Override or insert variables into the page template.
+ *
+ * @param $variables
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered ("page" in this case.)
+ */
+function zen_preprocess_page(&$variables, $hook) {
+ // Find the title of the menu used by the secondary links.
+ $secondary_links = variable_get('menu_secondary_links_source', 'user-menu');
+ $menus = menu_get_menus();
+ $variables['secondary_menu_heading'] = $menus[$secondary_links];
+}
+
+/**
* Override or insert variables into the maintenance page template.
*
* @param $variables
* site, if they have been configured.
* - $secondary_menu (array): An array containing the Secondary menu links for
* the site, if they have been configured.
+ * - $secondary_menu_heading: The title of the menu used by the secondary links.
* - $breadcrumb: The breadcrumb trail for the current page.
*
* Page content (in order of occurrence in the default page.tpl.php):
'class' => array('links', 'clearfix'),
),
'heading' => array(
- 'text' => t('Secondary menu'),
+ 'text' => $secondary_menu_heading,
'level' => 'h2',
'class' => array('element-invisible'),
),