Switch to autoLinks for RelationshipType page
authorcolemanw <coleman@civicrm.org>
Sun, 25 Jun 2023 01:25:59 +0000 (20:25 -0500)
committercolemanw <coleman@civicrm.org>
Sun, 25 Jun 2023 15:31:54 +0000 (11:31 -0400)
CRM/Admin/Page/RelationshipType.php

index e1b7f6ae53b00da9585ce086018ba61f863670b1..2f6c66986e2c46254b4284260c2cf94dad0c7a92 100644 (file)
@@ -22,13 +22,6 @@ class CRM_Admin_Page_RelationshipType extends CRM_Core_Page_Basic {
 
   public $useLivePageJS = TRUE;
 
-  /**
-   * The action links that we need to display for the browse screen.
-   *
-   * @var array
-   */
-  public static $_links = NULL;
-
   /**
    * Get BAO Name.
    *
@@ -39,53 +32,6 @@ class CRM_Admin_Page_RelationshipType extends CRM_Core_Page_Basic {
     return 'CRM_Contact_BAO_RelationshipType';
   }
 
-  /**
-   * Get action Links.
-   *
-   * @return array
-   *   (reference) of action links
-   */
-  public function &links() {
-    if (!(self::$_links)) {
-      self::$_links = [
-        CRM_Core_Action::VIEW => [
-          'name' => ts('View'),
-          'url' => 'civicrm/admin/reltype/edit',
-          'qs' => 'action=view&id=%%id%%&reset=1',
-          'title' => ts('View Relationship Type'),
-          'weight' => -20,
-        ],
-        CRM_Core_Action::UPDATE => [
-          'name' => ts('Edit'),
-          'url' => 'civicrm/admin/reltype/edit',
-          'qs' => 'action=update&id=%%id%%&reset=1',
-          'title' => ts('Edit Relationship Type'),
-          'weight' => -10,
-        ],
-        CRM_Core_Action::DISABLE => [
-          'name' => ts('Disable'),
-          'ref' => 'crm-enable-disable',
-          'title' => ts('Disable Relationship Type'),
-          'weight' => 40,
-        ],
-        CRM_Core_Action::ENABLE => [
-          'name' => ts('Enable'),
-          'ref' => 'crm-enable-disable',
-          'title' => ts('Enable Relationship Type'),
-          'weight' => 30,
-        ],
-        CRM_Core_Action::DELETE => [
-          'name' => ts('Delete'),
-          'url' => 'civicrm/admin/reltype/edit',
-          'qs' => 'action=delete&id=%%id%%',
-          'title' => ts('Delete Reletionship Type'),
-          'weight' => 100,
-        ],
-      ];
-    }
-    return self::$_links;
-  }
-
   /**
    * Get name of edit form.
    *