function legal_conditions_updated in Legal 5
Same name and namespace in other branches
- 6.8 legal.admin.inc \legal_conditions_updated()
- 6.7 legal.module \legal_conditions_updated()
- 7.2 legal.admin.inc \legal_conditions_updated()
- 7 legal.admin.inc \legal_conditions_updated()
1 call to legal_conditions_updated()
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;
}