Skip to content
Snippets Groups Projects
Commit 9a994da6 authored by mattwire's avatar mattwire
Browse files

Switch Payment processor webhooks menu entry to managed entity

parent 594c86de
No related branches found
No related tags found
No related merge requests found
......@@ -24,4 +24,25 @@ return [
'match' => ['name'],
],
],
[
'name' => 'mjwshared_paymentprocessor_webhooks',
'entity' => 'Navigation',
'cleanup' => 'always',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'label' => E::ts('Payment processor webhooks'),
'name' => 'mjwshared_paymentprocessor_webhooks',
'url' => 'civicrm/a#/paymentprocessorWebhook',
'permission' => 'administer payment processors',
'permission_operator' => 'OR',
'parent_id.name' => 'CiviContribute',
'is_active' => TRUE,
'has_separator' => 0,
'weight' => 90,
],
'match' => ['name'],
],
],
];
......@@ -254,20 +254,3 @@ function mjwshared_symfony_preUpdateInsert(\Civi\Core\DAO\Event\PreUpdate $event
}
}
}
/**
* Implements hook_civicrm_navigationMenu().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu
*/
function mjwshared_civicrm_navigationMenu(&$menu) {
_mjwshared_civix_insert_navigation_menu($menu, 'Administer/CiviContribute', array(
'label' => E::ts('Payment processor webhooks'),
'name' => 'mjwshared_paymentprocessor_webhooks',
'url' => 'civicrm/a#/paymentprocessorWebhook',
'permission' => 'administer payment processors',
'operator' => 'OR',
'separator' => 0,
));
_mjwshared_civix_navigationMenu($menu);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment