Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function specs_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items){
- if (empty($items)) {
- return;
- }
- //reformat the items array for our data to store into our schema correctly
- $values = $items;
- foreach($values as $delta => $item) {
- $items[$delta] = $items[$delta]['specs'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement