You are here

function responsive_menu_assign_attributes_to_item in Responsive and off-canvas menu 4.1.x

Same name and namespace in other branches
  1. 8.3 responsive_menu.module \responsive_menu_assign_attributes_to_item()
  2. 8.2 responsive_menu.module \responsive_menu_assign_attributes_to_item()
  3. 4.4.x responsive_menu.module \responsive_menu_assign_attributes_to_item()
  4. 4.0.x responsive_menu.module \responsive_menu_assign_attributes_to_item()
  5. 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 284
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);
    }
  }
}