You are here

function delta_reduce in Delta 7.3

@todo

1 call to delta_reduce()
delta_injection::presave in plugins/delta/delta_injection.inc
@todo

File

./delta.module, line 256
Provide contextual theme settings via context module

Code

function delta_reduce(array $first, array $second) {
  if ($first === $second) {
    return NULL;
  }
  foreach ($first as $name => $value) {
    if ($first[$name] === NULL && !isset($second[$name]) || isset($second[$name]) && $value === $second[$name]) {
      unset($first[$name]);
    }
  }
  return $first;
}