Merge remote-tracking branch 'upstream/master' into pledge-batchentry
[civicrm-core.git] / CRM / Tag / Form / Tag.php
index 5492a05e51cf9468c2527913d543d61af0300748..2e65e28a8fdb59fa6068bca91c935056fef16e4e 100644 (file)
@@ -66,7 +66,7 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form {
   }
 
   /**
-   * Function to build the form
+   * Build the form object
    *
    * @return void
    * @access public
@@ -110,28 +110,9 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form {
     //build tag widget
     $parentNames = CRM_Core_BAO_Tag::getTagSet('civicrm_contact');
     CRM_Core_Form_Tag::buildQuickForm($this, $parentNames, $this->_entityTable, $this->_entityID);
-
-    if ($this->_action & CRM_Core_Action::BROWSE) {
-      $this->freeze();
-    }
-    else {
-      $this->addButtons(array(
-          array(
-            'type' => 'next',
-            'name' => ts('Update Tags'),
-            'isDefault' => TRUE,
-          ),
-          array(
-            'type' => 'cancel',
-            'name' => ts('Cancel'),
-          ),
-        )
-      );
-    }
   }
 
   /**
-   *
    * @access public
    *
    * @return void
@@ -148,6 +129,5 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form {
 
     CRM_Core_Session::setStatus(ts('Your update(s) have been saved.'), ts('Saved'), 'success');
   }
-  //end of function
 }