function responsive_menu_assign_attributes_to_item in Responsive and off-canvas menu 4.4.x
Same name and namespace in other branches
- 8.3 responsive_menu.module \responsive_menu_assign_attributes_to_item()
- 8.2 responsive_menu.module \responsive_menu_assign_attributes_to_item()
- 4.0.x responsive_menu.module \responsive_menu_assign_attributes_to_item()
- 4.1.x responsive_menu.module \responsive_menu_assign_attributes_to_item()
- 4.3.x responsive_menu.module \responsive_menu_assign_attributes_to_item()
Assigns the flyleft attribute to the menu items.
Parameters
array $item: The menu item to process.
1 call to responsive_menu_assign_attributes_to_item()
- responsive_menu_preprocess_horizontal in ./
responsive_menu.module - Implements hook_preprocess_horizontal().
File
- ./
responsive_menu.module, line 347 - Contains procedural code.
Code
function responsive_menu_assign_attributes_to_item(array &$item) {
$item['fly_left'] = responsive_menu_get_flyleft_attribute($item['original_link']);
if (!empty($item['below'])) {
foreach ($item['below'] as &$item) {
responsive_menu_assign_attributes_to_item($item);
}
}
}