/** * Get action Links * * @return array (reference) of action links */ function &links() { if (!self::$_links) { self::$_links = array(CRM_Core_Action::VIEW => 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'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Relationship Type')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', '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 action Links * * @return array (reference) of action links */ function &links() { if (!self::$_links) { self::$_links = array(CRM_Core_Action::VIEW => 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 action Links * * @return array (reference) of action links */ function &links() { CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js'); if (!self::$_links) { self::$_links = array(CRM_Core_Action::VIEW => 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'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Relationship Type')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', '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; }