You are here

function _variable_realm_variable_settings_form_conflict in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_realm/variable_realm.form.inc \_variable_realm_variable_settings_form_conflict()

Warning about variable conflict.

1 call to _variable_realm_variable_settings_form_conflict()
_variable_realm_variable_settings_form_alter in variable_realm/variable_realm.form.inc
Alter settings form and return list of found variables.

File

variable_realm/variable_realm.form.inc, line 248
Administrative forms for variable realms.

Code

function _variable_realm_variable_settings_form_conflict($variable) {
  static $warnings;
  if (!isset($warnings[$variable])) {
    $warnings[$variable] = TRUE;
    drupal_set_message(t('There are conflicting realm variables in the form. The variable %name is enabled for more than one realm. Review your realm settings', array(
      '%name' => variable_name($variable),
    )), 'warning');
  }
}