/** * Recursive Build Menu array * * @param Varien_Simplexml_Element $parent * @param string $path * @param int $level * @return array */ protected function _buildMenuArray(Varien_Simplexml_Element $parent = null, $path = '', $level = 0) { if (is_null($parent)) { $parent = Mage::getSingleton('admin/config')->getAdminhtmlConfig()->getNode('inventoryplus_menu'); } $path = $path ? $path : 'inventoryplus/'; return parent::_buildMenuArray($parent, $path, $level); }
/** * Recursive Build Menu array * * @param Varien_Simplexml_Element $parent * @param string $path * @param int $level * @return array */ protected function _buildMenuArray(Varien_Simplexml_Element $parent = null, $path = '', $level = 0) { if (is_null($parent)) { $parent = $this->_getParentMenu(); } if ($this->_module_key == 'webpos') { if (!$path) { $path = 'sales/webpos/'; } } $path = $path ? $path : $this->_module_key . '/'; return parent::_buildMenuArray($parent, $path, $level); }