Commit 05b48763 authored by Jeff Miccolis's avatar Jeff Miccolis
Browse files

#586692 by alex_b, Better alerts on strongarmed forms.

parent edba666f
......@@ -139,7 +139,10 @@ function strongarm_form_alter(&$form, &$form_state, $form_id) {
module_load_include('inc', 'strongarm', 'strongarm.admin');
drupal_add_css(drupal_get_path('module', 'strongarm') .'/strongarm.css');
if (_strongarm_lockdown($form, $pattern, $position) && variable_get('strongarm_show_message', TRUE)) {
drupal_set_message(t('The hilighted fields below may need to retain their current values for your site to operate properly. Settings may be disabled or reverted automatically if they are not compatible with one or more of your site\'s modules.'), 'warning', FALSE);
drupal_set_message(t('The highlighted fields may need to retain their current values for your site to operate properly. Settings may be disabled or reverted automatically if they are not compatible with one or more of your site\'s modules.'), 'warning', FALSE);
if (user_access('administer site configuration')) {
drupal_set_message(t('You can change locked-in settings by switching to "Allow variable overrides" on the !admin_page.', array('!admin_page' => l(t('Strongarm admin page'), 'admin/settings/strongarm'))), 'warning', FALSE);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment