Browse Source

module to show system down message

pull/585/head
Zach Prezkuta 9 years ago
parent
commit
28c9123ac8
  1. 7
      mod/maintenance.php
  2. 1
      view/maintenance.tpl
  3. 6
      view/smarty3/maintenance.tpl

7
mod/maintenance.php

@ -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

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

6
view/smarty3/maintenance.tpl

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