Skip to content

Commit

Permalink
SearchKit - Add view/edit links for option values
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Nov 15, 2021
1 parent 6b6af37 commit 53f2239
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CRM/Core/DAO/OptionValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/OptionValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:171565168517add49222893871a84e43)
* (GenCodeChecksum:598cce8df447dc19cd4c846549be1141)
*/

/**
Expand All @@ -30,6 +30,16 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
*/
public static $_log = TRUE;

/**
* Paths for accessing this entity in the UI.
*
* @var string[]
*/
protected static $_paths = [
'update' => 'civicrm/admin/options/[option_group_id:name]?reset=1&action=update&id=[id]',
'delete' => 'civicrm/admin/options/[option_group_id:name]?reset=1&action=delete&id=[id]',
];

/**
* Option ID
*
Expand Down
4 changes: 4 additions & 0 deletions xml/schema/Core/OptionValue.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<name>civicrm_option_value</name>
<add>1.5</add>
<log>true</log>
<paths>
<update>civicrm/admin/options/[option_group_id:name]?reset=1&amp;action=update&amp;id=[id]</update>
<delete>civicrm/admin/options/[option_group_id:name]?reset=1&amp;action=delete&amp;id=[id]</delete>
</paths>
<field>
<name>id</name>
<title>Option Value ID</title>
Expand Down

0 comments on commit 53f2239

Please sign in to comment.