setId('role_info_tabs'); $this->setDestElementId('role_edit_form'); $this->setTitle(Mage::helper('adminhtml')->__('Role Information')); } protected function _prepareLayout() { $role = Mage::registry('current_role'); $this->addTab('info', $this->getLayout()->createBlock('adminhtml/permissions_tab_roleinfo')->setRole($role)->setActive(true)); $this->addTab('account', $this->getLayout()->createBlock('adminhtml/permissions_tab_rolesedit', 'adminhtml.permissions.tab.rolesedit')); if ($role->getId()) { $this->addTab('roles', array( 'label' => Mage::helper('adminhtml')->__('Role Users'), 'title' => Mage::helper('adminhtml')->__('Role Users'), 'content' => $this->getLayout()->createBlock('adminhtml/permissions_tab_rolesusers', 'role.users.grid')->toHtml(), )); } return parent::_prepareLayout(); } }