You are here

function _sarnia_schema_rule_is_changed in Sarnia 7

2 calls to _sarnia_schema_rule_is_changed()
sarnia_schema_rule_form_submit in ./sarnia.rules.inc
Form submit handler for sarnia schema rule administration.
sarnia_schema_rule_form_validate in ./sarnia.rules.inc

File

./sarnia.rules.inc, line 385

Code

function _sarnia_schema_rule_is_changed($rule, $form_values) {
  foreach ($form_values as $key => $value) {
    if (property_exists($rule, $key) && $rule->{$key} != $value) {
      return TRUE;
    }
  }
  return FALSE;
}