- Issue created by @Altcom_Alan
The wrapping div classes of the message that replaces a form when read only mode is enabled aren't correct for the alert messages in our theme.
We need to change class="messages warning" to class="alert alert-warning"
Add a hook to alter the form when read only mode is enabled.
In our theme we then can add THEME_readonlymode_form_alter() to make the change.
We decided to do this rather than add a setting for the message wrapper classes as we thought it would provide greater flexibility should we require to add or alter other elements in the form array when read only mode is enabled.
Active
2.0
Code