Getting the fields attached to a bundle of an entity in Drupal
I don't want to get any information from the fields, all I want to get are
the field machine names attached to a specific bundle (instance of an
entity).
I'm looking into entityfieldquery, entity_load, and entity_get_info, and
and I'm leaning towards entity_get_info, but now I'm reading that use is
deprecated.
function multi_reg_bundle_select() {
$query = entity_get_info('registration');
}
How do I get information from the attached bundle?
('registration['bundlename']')? Ultimately I just want to get the fields
attached to a particular bundle. Preferably in an array of strings.
No comments:
Post a Comment