Merge pull request #9888 from eileenmcnaughton/cust_another
[civicrm-core.git] / CRM / Contribute / Page / PaymentInfo.php
index e7c014591495f0b840ec26a770dab52e80a6db73..8227ff067f737b8bcd8241ac74600d03605a1e85 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  */
 class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
   public function preProcess() {
@@ -42,6 +42,9 @@ class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
     $this->assign('id', $this->_id);
     $this->assign('context', $this->_context);
     $this->assign('component', $this->_component);
+    if ($this->_component != 'event') {
+      $this->assign('hideButtonLinks', TRUE);
+    }
   }
 
   public function browse() {
@@ -53,16 +56,14 @@ class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
   }
 
   /**
-   * This function takes care of all the things common to all
-   * pages. This typically involves assigning the appropriate
+   * Run page.
+   *
+   * This typically involves assigning the appropriate
    * smarty variable :)
    *
    * @return string
    *   The content generated by running this page
    */
-  /**
-   * @return string
-   */
   public function run() {
     $this->preProcess();
     if ($this->_action) {