function _readonlymode_notice in Read only mode 7
Same name and namespace in other branches
- 6 readonlymode.module \_readonlymode_notice()
Returns the custom readonlymode warning.
Used when a page with a blocked form is viewed.
3 calls to _readonlymode_notice()
- readonlymode_block_form in ./
readonlymode.module - After build callback to block the form.
- readonlymode_block_view in ./
readonlymode.module - Implements hook_block_view().
- readonlymode_form_system_site_maintenance_mode_alter in ./
readonlymode.module - Implements hook_form_FORM_ID_alter().
File
- ./
readonlymode.module, line 228 - The Read Ony Mode main module file.
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).'));
}