Would be helpful if workbench_access_get_assigned_fields could be used with other entity types. Right now, 'node' is hardcoded as the entity type for the field_info_instances() function calls.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | workbench_access-get_assigned_fields_entities-2382115-2.patch | 2.14 KB | matt.mendonca |
| #1 | workbench_access-get_assigned_fields_entities-2382115-1.patch | 2.13 KB | matt.mendonca |
Comments
Comment #1
matt.mendonca commentedThis patch adds two functions, workbench_access_get_assigned_entity_fields and workbench_access_get_available_entity_fields. The new functions behave the same as workbench_access_get_assigned_fields and workbench_access_get_available_fields, except that the entity_type is passed in as an argument:
Comment #2
matt.mendonca commentedCorrected workbench_access_get_available_entity_fields workbench_access_get_assigned_fields instead of workbench_access_get_assigned_entity_fields.