function get_field_collection_fields($field){
$fc_instances = field_info_instances('field_collection_item', $field);
$fc_fields = array_keys($fc_instances);
return $fc_fields;
}
Advertisements