You are here

function _readonlymode_notice_form_not_saved in Read only mode 6

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

Return the custom readonlymode error when a user attempts to submit a blocked form.

2 calls to _readonlymode_notice_form_not_saved()
readonlymode_check_form_validate in ./readonlymode.module
Our validate handler for checking whether the form submission is occurring while read-only mode is enabled.
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 159
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_form_not_saved() {
  return t(variable_get('site_readonly_message_form_not_saved', 'Data not saved. ' . variable_get('site_name', 'drupal') . ' is currently in maintenance. During maintenance it is not possible to change content. Please make a note of your changes and try again later.'));
}