*/ class Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Group extends Mage_Adminhtml_Block_System_Config_Form_Fieldset { /** * Return header comment part of html for fieldset * * @param Varien_Data_Form_Element_Abstract $element * @return string */ protected function _getHeaderCommentHtml($element) { $groupConfig = $this->getGroup($element)->asArray(); if (empty($groupConfig['help_url']) || !$element->getComment()) { return parent::_getHeaderCommentHtml($element); } $html = '
' . $element->getComment() . ' ' . Mage::helper('paypal')->__('Help') . '
'; return $html; } /** * Return collapse state * * @param Varien_Data_Form_Element_Abstract $element * @return bool */ protected function _getCollapseState($element) { $extra = Mage::getSingleton('admin/session')->getUser()->getExtra(); if (isset($extra['configState'][$element->getId()])) { return $extra['configState'][$element->getId()]; } if ($element->getExpanded() !== null) { return 1; } return false; } }