original_string: private function _enableAutoSubmitElement($element)
      {
          if ($element instanceof \Zend_Form || $element instanceof \Zend_Form_DisplayGroup) {
              foreach ($element->getElements() as $sub) {
                  $this->_enableAutoSubmitElement($sub);
              }
          } elseif ($element instanceof \Gems_Form_AutosubmitElementInterface) {
              $element->enableAutoSubmit($this->_autosubmit);
          }
      }
code: private function _enableAutoSubmitElement($element)
      {
          if ($element instanceof \Zend_Form || $element instanceof \Zend_Form_DisplayGroup) {
              foreach ($element->getElements() as $sub) {
                  $this->_enableAutoSubmitElement($sub);
              }
          } elseif ($element instanceof \Gems_Form_AutosubmitElementInterface) {
              $element->enableAutoSubmit($this->_autosubmit);
          }
      }
code_tokens: private function _enableAutoSubmitElement ( $ element ) { if ( $ element instanceof \ Zend_Form || $ element instanceof \ Zend_Form_DisplayGroup ) { foreach ( $ element -> getElements ( ) as $ sub ) { $ this -> _enableAutoSubmitElement ( $ sub ) ; } } elseif ( $ element instanceof \ Gems_Form_AutosubmitElementInterface ) { $ element -> enableAutoSubmit ( $ this -> _autosubmit ) ; } }
docstring: Change all elements into an autosubmit element
  
  Call only when $_autoSubmit is set
  
  @param mixed $element
docstring_tokens: Change all elements into an autosubmit element