number.inc 343 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @file
  4. * Provide diff field functions for the Number module.
  5. */
  6. /**
  7. * Diff field callback for parsing number field comparative values.
  8. */
  9. function number_field_diff_view($items, $context) {
  10. $diff_items = array();
  11. foreach ($items as $delta => $item) {
  12. $diff_items[$delta] = $item['value'];
  13. }
  14. return $diff_items;
  15. }