You are here

function environment_readonly_block_view in Environment 7

Implements hook_block_view().

File

modules/environment_readonly/environment_readonly.module, line 40
Code for the Environment Readonly module.

Code

function environment_readonly_block_view($delta = '') {
  switch ($delta) {

    // Block that informs the site is in read only mode.
    case 'environment_readonly_alert':
      $block['subject'] = 'The site is currently in Read Only mode';
      $block['content'] = 'The site is undergoing maintenance and is in Read
        Only mode.  You can view all content you normally would have access to,
        but you cannot make any modifications at this time.  We\'ll be back
        shortly!';
  }
  return $block;
}