You are here

function legal_conditions_updated in Legal 6.7

Same name and namespace in other branches
  1. 5 legal.module \legal_conditions_updated()
  2. 6.8 legal.admin.inc \legal_conditions_updated()
  3. 7.2 legal.admin.inc \legal_conditions_updated()
  4. 7 legal.admin.inc \legal_conditions_updated()
1 call to legal_conditions_updated()
legal_administration_submit in ./legal.module

File

./legal.module, line 674

Code

function legal_conditions_updated($new) {
  $old = legal_get_conditions();
  if ($old['conditions'] != $new['conditions']) {
    return TRUE;
  }
  $count = count($new['extras']);
  for ($counter = 1; $counter <= $count; $counter++) {
    if ($old['extras']['extras-' . $counter] != $new['extras']['extras-' . $counter]) {
      return TRUE;
    }
  }
  return FALSE;
}