Fields: list
fields_listLists every field on an entity, returning each field's ID, name, label, database and display types, plus required, unique, indexed, and locked flags. Use it to inspect an entity's schema.
Instructions
List fields on an entity. Takes the entity name. Returns each field's id, name, label, database type, display type and its required, unique, indexed and locked flags. For one field's complete definition, including relationship target and select options, use fields_get; for the entity's own settings, use entities_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity name |