protected function action_display() { if ($this->getAction() == 'edit') { parent::action_display(); } else { if (!$this->getPrimary() instanceof I2CE_Form) { I2CE::raiseError("No primary object"); return false; } } return true; }