Add an icon map for calendar events to fix #146

This commit is contained in:
Dmitrii Metelkin
2019-02-22 10:19:25 +11:00
parent cf85a04ddc
commit 030fec75e1
2 changed files with 13 additions and 2 deletions

11
lib.php
View File

@@ -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',
];
}