module to show system down message

This commit is contained in:
Zach Prezkuta 2013-01-14 16:48:01 -07:00
parent 31c3bbf549
commit 28c9123ac8
3 changed files with 14 additions and 0 deletions

7
mod/maintenance.php Normal file
View file

@ -0,0 +1,7 @@
<?php
function maintenance_content(&$a) {
return replace_macros(get_markup_template('maintenance.tpl'), array(
'$sysdown' => t('System down for maintenance')
));
}

1
view/maintenance.tpl Normal file
View file

@ -0,0 +1 @@
<div id="maintenance-message">$sysdown</div>

View file

@ -0,0 +1,6 @@
{{*
* AUTOMATICALLY GENERATED TEMPLATE
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
<div id="maintenance-message">{{$sysdown}}</div>