protected function createComponentEditRubrikaForm() { $rubriky = $this->redakce->nazvyHlavnichRubrik(); unset($rubriky[$this->id]); $form = new UpravitRubrikuForm($rubriky, $this->prava->getPristupy($this->modul, $this->vyse_prav['rubrika_edit'], null, TRUE), $this->rubrika); $form->onSuccess[] = callback($this, 'editRubrikaFormSubmitted'); return $form; }