Merge pull request #4552 from giant-rabbit/preprocess-hook
[civicrm-core.git] / CRM / Grant / Form / Task.php
index 05fa6c415f6f12928d7ab4567e364e8cf9235e96..cf89402c08a807060c636c500887f75fe586241b 100644 (file)
@@ -78,6 +78,10 @@ class CRM_Grant_Form_Task extends CRM_Core_Form {
     self::preProcessCommon($this);
   }
 
+  /**
+   * @param $form
+   * @param bool $useTable
+   */
   static function preProcessCommon(&$form, $useTable = FALSE) {
     $form->_grantIds = array();
 
@@ -145,12 +149,15 @@ class CRM_Grant_Form_Task extends CRM_Core_Form {
    * the form with a customized title for the main Submit
    *
    * @param string $title title of the main button
-   * @param string $type  button type for the form after processing
+   * @param string $nextType
+   * @param string $backType
+   *
+   * @internal param string $type button type for the form after processing
    *
    * @return void
    * @access public
    */
-  function addDefaultButtons($title, $nextType = 'next', $backType = 'back') {
+  function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) {
     $this->addButtons(array(
         array(
           'type' => $nextType,