function template_preprocess_colossal_menu_link in Colossal Menu 2.x
Same name and namespace in other branches
- 8 colossal_menu.module \template_preprocess_colossal_menu_link()
Prepares variables for Link templates.
Parameters
array $variables: An associative array containing:
- elements: An associative array containing the user information and any
- attributes: HTML attributes for the containing element.
File
- ./
colossal_menu.module, line 37 - Colossal Menu Hooks.
Code
function template_preprocess_colossal_menu_link(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}