*
* Generated from xml/schema/CRM/ACL/ACL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9d50ed80344474830f87df285dc6cbf2)
+ * (GenCodeChecksum:689e7e5f58bb2cc9959817ecbbd3beeb)
*/
/**
*/
public static $_log = FALSE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'add' => 'civicrm/acl/edit?reset=1&action=add',
+ 'delete' => 'civicrm/acl/delete?reset=1&action=delete&id=[id]',
+ 'update' => 'civicrm/acl/edit?reset=1&action=edit&id=[id]',
+ ];
+
/**
* Unique table ID
*
}
}
+ /**
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity() {
+ return 'ACL';
+ }
+
}
self::$_links = [
CRM_Core_Action::UPDATE => [
'name' => ts('Edit'),
- 'url' => 'civicrm/acl',
+ 'url' => 'civicrm/acl/edit',
'qs' => 'reset=1&action=update&id=%%id%%',
'title' => ts('Edit ACL'),
],
],
CRM_Core_Action::DELETE => [
'name' => ts('Delete'),
- 'url' => 'civicrm/acl',
+ 'url' => 'civicrm/acl/delete',
'qs' => 'reset=1&action=delete&id=%%id%%',
'title' => ts('Delete ACL'),
'weight' => 100,
<page_callback>CRM_ACL_Page_ACL</page_callback>
<access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
</item>
+ <item>
+ <path>civicrm/acl/edit</path>
+ <title>Manage ACLs</title>
+ <page_callback>CRM_ACL_Form_ACL</page_callback>
+ <access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
+ </item>
+ <item>
+ <path>civicrm/acl/delete</path>
+ <title>Manage ACLs</title>
+ <page_callback>CRM_ACL_Form_ACL</page_callback>
+ <access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
+ </item>
<item>
<path>civicrm/acl/entityrole</path>
<title>Assign Users to ACL Roles</title>
{if $action ne 1 and $action ne 2}
<div class="action-link">
- {crmButton q="action=add&reset=1" id="newACL" icon="plus-circle"}{ts}Add ACL{/ts}{/crmButton}
+ {crmButton p="civicrm/acl/edit" q="action=add&reset=1" id="newACL" icon="plus-circle"}{ts}Add ACL{/ts}{/crmButton}
</div>
{/if}
</div>
<name>civicrm_acl</name>
<comment>Access Control List</comment>
<add>1.6</add>
+ <paths>
+ <add>civicrm/acl/edit?reset=1&action=add</add>
+ <delete>civicrm/acl/delete?reset=1&action=delete&id=[id]</delete>
+ <update>civicrm/acl/edit?reset=1&action=edit&id=[id]</update>
+ </paths>
<field>
<name>id</name>
<title>ACL ID</title>