You are here

function _readonlymode_notice in Read only mode 6

Same name and namespace in other branches
  1. 7 readonlymode.module \_readonlymode_notice()

Return the custom readonlymode warning when a page with a blocked form is viewed.

2 calls to _readonlymode_notice()
readonlymode_form_alter in ./readonlymode.module
Implementation of hook_form_alter(). Permit posting of content
readonlymode_form_system_site_maintenance_settings_alter in ./readonlymode.module
Implementation of hook_form_FORM_ID_alter(). Alter the Site Maintenance form

File

./readonlymode.module, line 152
Read Only Mode provides an alternate to the built in 'Maintenance Mode' in Drupal. Instead of displaying a static text file to users while the site is in maintenance mode, Read Only Mode will allow access (reading) of new content while…

Code

function _readonlymode_notice() {
  return t(variable_get('site_readonly_message', variable_get('site_name', 'drupal') . ' is currently in maintenance. During this maintenance it is not possible to change site content (like comments, pages and users).'));
}