public function onFakeSubmit(&$form, &$data) {
        if ($this->useMultiRowForm) {
            //Check if the insert button was pressed and act upon that
            if ($this->hasNew() && isset($data['insert_button']) && $data['insert_button']) {
                    // Add a row
                    $model          = $this->getModel();
                    $mname          = $model->getName();
                    $data[$mname][] = $model->loadNew();
            }
        }
    }
public function onFakeSubmit(&$form, &$data) {
        if ($this->useMultiRowForm) {
            //Check if the insert button was pressed and act upon that
            if ($this->hasNew() && isset($data['insert_button']) && $data['insert_button']) {
                    // Add a row
                    $model          = $this->getModel();
                    $mname          = $model->getName();
                    $data[$mname][] = $model->loadNew();
            }
        }
    }
public function onFakeSubmit ( & $ form , & $ data ) { if ( $ this -> useMultiRowForm ) { //Check if the insert button was pressed and act upon that
 if ( $ this -> hasNew ( ) && isset ( $ data [ 'insert_button' ] ) && $ data [ 'insert_button' ] ) { // Add a row
 $ model = $ this -> getModel ( ) ; $ mname = $ model -> getName ( ) ; $ data [ $ mname ] [ ] = $ model -> loadNew ( ) ; } } }
Performs actions when the form is submitted, but the submit button was not checked

When not rerouted, the form will be populated afterwards

@param \Zend_Form $form   The populated form
@param array     $data   The data-array we are working on
Performs actions when the form is submitted but the submit button was not checked