-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CiviGrant - Migrate navigation menu to extension
- Loading branch information
Showing
3 changed files
with
110 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ | |
* @package Civi\Api4 | ||
*/ | ||
class Navigation extends Generic\DAOEntity { | ||
use Generic\Traits\ManagedEntity; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?php | ||
return [ | ||
[ | ||
'name' => 'Navigation_Grants', | ||
'entity' => 'Navigation', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'label' => 'Grants', | ||
'name' => 'Grants', | ||
'url' => NULL, | ||
'icon' => 'crm-i fa-money', | ||
'permission' => 'access CiviGrant', | ||
'permission_operator' => '', | ||
'is_active' => TRUE, | ||
'weight' => 90, | ||
'parent_id' => NULL, | ||
'has_separator' => NULL, | ||
'domain_id' => 'current_domain', | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'Navigation_Grants_Navigation_Dashboard', | ||
'entity' => 'Navigation', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'label' => 'Dashboard', | ||
'name' => 'Dashboard', | ||
'url' => 'civicrm/grant?reset=1', | ||
'icon' => NULL, | ||
'permission' => 'access CiviGrant', | ||
'permission_operator' => '', | ||
'parent_id.name' => 'Grants', | ||
'is_active' => TRUE, | ||
'has_separator' => NULL, | ||
'domain_id' => 'current_domain', | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'Navigation_Grants_Navigation_New Grant', | ||
'entity' => 'Navigation', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'label' => 'New Grant', | ||
'name' => 'New Grant', | ||
'url' => 'civicrm/grant/add?reset=1&action=add&context=standalone', | ||
'icon' => NULL, | ||
'permission' => 'access CiviGrant,edit grants', | ||
'permission_operator' => 'AND', | ||
'parent_id.name' => 'Grants', | ||
'is_active' => TRUE, | ||
'has_separator' => NULL, | ||
'domain_id' => 'current_domain', | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'Navigation_Grants_Navigation_Find Grants', | ||
'entity' => 'Navigation', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'label' => 'Find Grants', | ||
'name' => 'Find Grants', | ||
'url' => 'civicrm/grant/search?reset=1', | ||
'icon' => NULL, | ||
'permission' => 'access CiviGrant', | ||
'permission_operator' => '', | ||
'parent_id.name' => 'Grants', | ||
'is_active' => TRUE, | ||
'has_separator:name' => 'After menu element', | ||
'domain_id' => 'current_domain', | ||
], | ||
], | ||
], | ||
[ | ||
'name' => 'Navigation_Grants_Navigation_Grant Reports', | ||
'entity' => 'Navigation', | ||
'cleanup' => 'unused', | ||
'update' => 'unmodified', | ||
'params' => [ | ||
'version' => 4, | ||
'values' => [ | ||
'label' => 'Grant Reports', | ||
'name' => 'Grant Reports', | ||
'url' => 'civicrm/report/list?compid=5&reset=1', | ||
'icon' => NULL, | ||
'permission' => 'access CiviGrant', | ||
'permission_operator' => '', | ||
'parent_id.name' => 'Grants', | ||
'is_active' => TRUE, | ||
'has_separator:name' => 'None', | ||
'domain_id' => 'current_domain', | ||
], | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters