From 2eb8f73e86ca2cd0f871f602f30bad1dd8c354bc Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 5 Dec 2017 22:11:09 +0400 Subject: Added additional menu items --- lib.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lib.php (limited to 'lib.php') diff --git a/lib.php b/lib.php new file mode 100644 index 0000000..9936623 --- /dev/null +++ b/lib.php @@ -0,0 +1,43 @@ +. + +/** + * Functions and classes of the patch system. + * + * @package local_billingpatch + * @copyright 2017 "Valentin Popov" + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined("MOODLE_INTERNAL") || die(); + +/** + * Adds additional menu items. + * + * @param global_navigation $navigation + */ +function local_billingpatch_extend_navigation(global_navigation $navigation) { + $billingnode = navigation_node::create( + new lang_string("billing", "local_billingpatch"), + new moodle_url("https://billing.styleschool.ru/"), + navigation_node::TYPE_CUSTOM, + null, + "billing", + new pix_icon("i/navigationitem", "") + ); + $billingnode->showinflatnavigation = true; + $navigation->add_node($billingnode); +} \ No newline at end of file -- cgit v1.2.3