. /** * Adds payments links to the admin tree * * @package core * @copyright 2020 Marina Glancy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $ADMIN->add('payment', new admin_externalpage( 'paymentaccounts', new lang_string('paymentaccounts', 'payment'), new moodle_url("/payment/accounts.php"), ['moodle/payment:manageaccounts', 'moodle/payment:viewpayments']));