You are here

function legal_conditions_updated in Legal 5

Same name and namespace in other branches
  1. 6.8 legal.admin.inc \legal_conditions_updated()
  2. 6.7 legal.module \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 660

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;
}