You are here

function makemeeting_field_load in Make Meeting Scheduler 7.2

Implements hook_field_load().

File

./makemeeting.field.inc, line 461
This file is mostly about the field configuration.

Code

function makemeeting_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {

  // Unserialize array values
  foreach ($entities as $id => $entity) {
    foreach ($items[$id] as $delta => $item) {
      if ($field['type'] == 'makemeeting' && is_string($items[$id][$delta]['choices'])) {
        $items[$id][$delta]['choices'] = unserialize($items[$id][$delta]['choices']);
      }
    }
  }
}