public function renderAdd($type, $backURL) { $add = new Form($type); $add->setBackButtonURL($backURL); $add->setCategory($this->getCategoryObject()); $add->setDashboardPageParameters($this->getRequestActionParameters()); $this->set('attributeView', $add); $this->set('pageTitle', t('Add Attribute')); }