function delta_reduce

nittany7 delta.module delta_reduce(array $first, array $second)
cis7 delta.module delta_reduce(array $first, array $second)
mooc7 delta.module delta_reduce(array $first, array $second)

@todo

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

File

modules/contrib/delta/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;
}