protected function getDefaults() { $menudefaults = GantryMenu::getDefaults(); $defaults = array_merge($menudefaults, $this->_defaults); foreach (self::$themes as $theme) { $themeclass = $theme['class']; if (class_exists($themeclass)) { $theme = new $themeclass(); $theme_options = $theme->getDefaults(); $defaults = array_merge($defaults, $theme_options); } } return $defaults; }