public function definition_after_data() {
        $mform = $this->_form;
        $filterstartdate = $mform->getElement('filterstartdate')->getValue();
        $filterenddate = $mform->getElement('filterenddate')->getValue();
        if (!empty($filterstartdate['enabled']) || !empty($filterenddate['enabled'])) {
            $mform->setExpanded('filterheader', true);
        }
    }
public function definition_after_data() {
        $mform = $this->_form;
        $filterstartdate = $mform->getElement('filterstartdate')->getValue();
        $filterenddate = $mform->getElement('filterenddate')->getValue();
        if (!empty($filterstartdate['enabled']) || !empty($filterenddate['enabled'])) {
            $mform->setExpanded('filterheader', true);
        }
    }
public function definition_after_data ( ) { $ mform = $ this -> _form ; $ filterstartdate = $ mform -> getElement ( 'filterstartdate' ) -> getValue ( ) ; $ filterenddate = $ mform -> getElement ( 'filterenddate' ) -> getValue ( ) ; if ( ! empty ( $ filterstartdate [ 'enabled' ] ) || ! empty ( $ filterenddate [ 'enabled' ] ) ) { $ mform -> setExpanded ( 'filterheader' , true ) ; } }
Expand the form contents if the filter is in use.
@throws \HTML_QuickForm_Error
Expand the form contents if the filter is in use .