I've used field_info_instances
function to retrieve all fields info under a content type.
field_info_instances('$entity_type','$bundle_name')
.
As from API page,
- If
$entity_type
is not set, return all instances keyed by entity type and bundle name. - If
$entity_type
is set, return all instances for that entity type, keyed by bundle name. - If
$entity_type
and$bundle_name
are set, return all instances for that bundle.
I didn't get the third point here. what is the default order for return output by file_info_instances
when $entity_type
and $bundle_name
given.
Any idea?