Drupal - Get List of Fields for a Content Type
Category:
To get a list of fields for a content type in Drupal 7, try the field_info_instances function.
Here is an example usage:
$my_fields = field_info_instances("node", "my_custom_content_type");
From here, I'll typically use the dpm function from the Devel module to see what is inside:
dpm($my_fields);
There you have it, an easy wasy to get a list of fields for a custom content type in Drupal 7.