From 030fec75e185c569da49a7af53f61149dfb63b69 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Fri, 22 Feb 2019 10:19:25 +1100 Subject: [PATCH] Add an icon map for calendar events to fix #146 --- lib.php | 11 +++++++++++ version.php | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index 9a11d89..a630825 100644 --- a/lib.php +++ b/lib.php @@ -87,3 +87,14 @@ function auth_outage_get_climaintenance_resource_file($file) { $realpath = realpath($resourcedir.'/'.$file); return ($realpath == false) ? null : $realpath; } + +/** + * Display required icon for the calendar events. + * + * @return array + */ +function auth_outage_get_fontawesome_icon_map() { + return [ + 'core:i/auth_outageevent' => 'fa-power-off', + ]; +} diff --git a/version.php b/version.php index 32eb82b..648efee 100644 --- a/version.php +++ b/version.php @@ -28,7 +28,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = "auth_outage"; -$plugin->version = 2018100500; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = '1.0.9'; // Human-readable release information. +$plugin->version = 2019022200; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = '1.0.10'; // Human-readable release information. $plugin->requires = 2017051500; // Requires 3.3 and higher. $plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments!