targetName = $name; $this->removeTarget = $target; } /** * Create the confirmation form * * @see Form::create() */ public function create() { $this->addElement( 'hidden', $this->targetName, array( 'value' => $this->removeTarget, 'required' => true ) ); $this->addElement( 'button', 'btn_submit', array( 'type' => 'submit', 'escape' => false, 'value' => '1', 'class' => 'btn btn-cta btn-common', 'label' => $this->getView()->icon('remove.png') . ' Confirm Removal' ) ); } }