You are here

public function MenuLinkNodeMenu::offsetSet in Menu Link (Field) 7

File

menu_link_node_menu/menu_link_node_menu.module, line 65
Use a menu link field for core.

Class

MenuLinkNodeMenu

Code

public function offsetSet($offset, $value) {
  if (empty($this->menu)) {
    $this
      ->loadMenu();
  }
  if ($offset === NULL) {
    $this->menu[] = $value;
  }
  else {
    $this->menu[$offset] = $value;
  }
}