array( 'name' => ts('View'), 'url' => 'civicrm/admin/reltype', 'qs' => 'action=view&id=%%id%%&reset=1', 'title' => ts('View Relationship Type'), ), CRM_Core_Action::UPDATE => array( 'name' => ts('Edit'), 'url' => 'civicrm/admin/reltype', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Relationship Type'), ), CRM_Core_Action::DISABLE => array( 'name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Contact_BAO_RelationshipType' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable Relationship Type'), ), CRM_Core_Action::ENABLE => array( 'name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Contact_BAO_RelationshipType' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable Relationship Type'), ), CRM_Core_Action::DELETE => array( 'name' => ts('Delete'), 'url' => 'civicrm/admin/reltype', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Reletionship Type'), ), ); } return self::$_links; } /** * Get name of edit form * * @return string Classname of edit form. */ function editForm() { return 'CRM_Admin_Form_RelationshipType'; } /** * Get edit form name * * @return string name of this page. */ function editName() { return 'Relationship Types'; } /** * Get user context. * * @return string user context. */ function userContext($mode = NULL) { return 'civicrm/admin/reltype'; } }