Add navigation menu items
This commit is contained in:
parent
518f8809c7
commit
e39a91e477
3 changed files with 95 additions and 1 deletions
1
info.xml
1
info.xml
|
@ -31,6 +31,7 @@
|
|||
</civix>
|
||||
<mixins>
|
||||
<mixin>menu-xml@1.0.0</mixin>
|
||||
<mixin>mgd-php@1.0.0</mixin>
|
||||
</mixins>
|
||||
<classloader>
|
||||
<psr0 prefix="CRM_" path="."/>
|
||||
|
|
93
managed/Navigation__twingle_configuration.mgd.php
Normal file
93
managed/Navigation__twingle_configuration.mgd.php
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright (C) 2023 SYSTOPIA GmbH
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation in version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use CRM_Twingle_ExtensionUtil as E;
|
||||
|
||||
return [
|
||||
[
|
||||
'name' => 'Navigation__twingle_configuration',
|
||||
'entity' => 'Navigation',
|
||||
'cleanup' => 'unused',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'domain_id' => 'current_domain',
|
||||
'label' => E::ts('Twingle API Configuration'),
|
||||
'name' => 'twingle_configuration',
|
||||
'url' => 'civicrm/admin/settings/twingle',
|
||||
'icon' => NULL,
|
||||
'permission' => [
|
||||
'administer CiviCRM',
|
||||
],
|
||||
'permission_operator' => 'OR',
|
||||
'parent_id.name' => 'CiviContribute',
|
||||
'is_active' => TRUE,
|
||||
'has_separator' => 0,
|
||||
],
|
||||
'match' => ['name', 'parent_id'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Navigation__twingle_settings',
|
||||
'entity' => 'Navigation',
|
||||
'cleanup' => 'unused',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'domain_id' => 'current_domain',
|
||||
'label' => E::ts('Twingle API Settings'),
|
||||
'name' => 'twingle_settings',
|
||||
'url' => 'civicrm/admin/settings/twingle/settings',
|
||||
'icon' => NULL,
|
||||
'permission' => [
|
||||
'administer CiviCRM',
|
||||
],
|
||||
'permission_operator' => 'OR',
|
||||
'parent_id.name' => 'twingle_configuration',
|
||||
'is_active' => TRUE,
|
||||
'has_separator' => 0,
|
||||
],
|
||||
'match' => ['name', 'parent_id'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'Navigation__twingle_profiles',
|
||||
'entity' => 'Navigation',
|
||||
'cleanup' => 'unused',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'domain_id' => 'current_domain',
|
||||
'label' => E::ts('Twingle API Profiles'),
|
||||
'name' => 'twingle_profiles',
|
||||
'url' => 'civicrm/admin/settings/twingle/profiles',
|
||||
'icon' => NULL,
|
||||
'permission' => [
|
||||
'administer CiviCRM',
|
||||
],
|
||||
'permission_operator' => 'OR',
|
||||
'parent_id.name' => 'twingle_configuration',
|
||||
'is_active' => TRUE,
|
||||
'has_separator' => 0,
|
||||
],
|
||||
'match' => ['name', 'parent_id'],
|
||||
],
|
||||
],
|
||||
];
|
|
@ -6,7 +6,7 @@
|
|||
<title>Twingle API Configuration</title>
|
||||
<access_arguments>administer CiviCRM</access_arguments>
|
||||
<desc>Configure the Twingle API extension</desc>
|
||||
<adminGroup>System Settings</adminGroup>
|
||||
<adminGroup>CiviContribute</adminGroup>
|
||||
<icon>admin/option.png</icon>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue