Example #1
0
 protected function _prepareLayout()
 {
     $role = Mage::registry('current_role');
     $this->addTab('info', $this->getLayout()->createBlock('Mage_User_Block_Role_Tab_Info')->setRole($role)->setActive(true));
     if ($role->getId()) {
         $this->addTab('roles', array('label' => Mage::helper('Mage_User_Helper_Data')->__('Role Users'), 'title' => Mage::helper('Mage_User_Helper_Data')->__('Role Users'), 'content' => $this->getLayout()->createBlock('Mage_User_Block_Role_Tab_Users', 'role.users.grid')->toHtml()));
     }
     return parent::_prepareLayout();
 }
Example #2
0
 protected function _prepareLayout()
 {
     $this->setChild('userGrid', $this->getLayout()->createBlock('Mage_User_Block_Role_Grid_User', 'roleUsersGrid'));
     return parent::_prepareLayout();
 }