class CRM_Contribute_Form_ManagePremiums extends CRM_Contribute_Form {
/**
- * Function to pre process the form
+ * pre process the form
*
* @access public
*
}
/**
- * This function sets the default values for the form. Manage Premiums that in edit/view mode
+ * Set default values for the form. Manage Premiums that in edit/view mode
* the default values are retrieved from the database
*
* @access public
}
/**
- * Function to build the form
+ * Build the form object
*
* @return void
* @access public
$this->addFormRule(array('CRM_Contribute_Form_ManagePremiums', 'formRule'));
+ $this->addButtons(array(
+ array(
+ 'type' => 'upload',
+ 'name' => ts('Save'),
+ 'isDefault' => TRUE,
+ ),
+ array(
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
+ ),
+ )
+ );
$this->assign('productId', $this->_id);
}
}
/**
- * Function to process the form
+ * Process the form submission
*
* @access public
*