function onLoadProfileForm(Am_Event $event) { if (!$this->getDi()->config->get('subusers_different_profile_form')) { return; } /* @var $user User */ $user = $event->getUser(); if ($user->subusers_parent_id && !$event->getRequest()->getParam('c')) { $event->setReturn($this->getDi()->savedFormTable->findFirstByType(self::SAVED_FORM_TYPE)); } }