You are here

function _readonlymode_notice_form_not_saved in Read only mode 7

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

Return the custom readonlymode error.

Used when a user attempts to submit a blocked form.

2 calls to _readonlymode_notice_form_not_saved()
readonlymode_check_form_validate in ./readonlymode.module
Validate handler for checking whether the form submission is occurring.
readonlymode_form_system_site_maintenance_mode_alter in ./readonlymode.module
Implements hook_form_FORM_ID_alter().

File

./readonlymode.module, line 237
The Read Ony Mode main module file.

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.'));
}