*/ class Mage_Adminhtml_Block_Api_User_Edit extends Mage_Adminhtml_Block_Widget_Form_Container { public function __construct() { $this->_objectId = 'user_id'; $this->_controller = 'api_user'; parent::__construct(); $this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save User')); $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete User')); } public function getHeaderText() { if (Mage::registry('api_user')->getId()) { return Mage::helper('adminhtml')->__("Edit User '%s'", $this->htmlEscape(Mage::registry('api_user')->getUsername())); } else { return Mage::helper('adminhtml')->__('New User'); } } }