Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($round_node->field_scheduling_fc['und'] as $key=>$fc){
- $items = field_collection_item_load($fc['value']);
- $booked = $items->field_is_booked['und'][0]['value'];
- ddl($items);
- if(!$booked){
- $start = substr($items->field_time_slot['und'][0]['value'], 0, -3);
- $end = substr($items->field_time_slot['und'][0]['value2'], 0, -3);
- $row['Timeslots'][$items->item_id] = $start . " - " . $end;
- $row = array_reverse($row);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement