- if(!$menu->getItems())
- return;
- $this->action->elementStart('li');
- $this->action->element('h3', null, $label);
- $menu->show();
- $this->action->elementEnd('li');
+ if (Event::handle('StartSubMenu', array($this->action, $menu, $label))) {
+ $this->action->elementStart('li');
+ $this->action->element('h3', null, $label);
+ $menu->show();
+ $this->action->elementEnd('li');
+ Event::handle('EndSubMenu', array($this->action, $menu, $label));
+ }