Introduction to Drupal FieldAPI.
Topics:
The different abstractions behind the FieldAPI.
The Drupal hooks needed to define your own custom Field.
The advantages of creating fields using the Drupal FieldAPI.
4. Entities are the things, the data, the information,
the “stuff”, that we want do deal with in our
Drupal application.
http://www.istos.it/comment/2882
Entities
5. Entities
‣ An abstraction for content
‣ Entities & bundles
‣ Created because not everything is a
node
‣ What makes node powerful is their
fieldability
8. Field type
Field
Field instance
Layers of abstraction
9. Fields types
‣ Contains business logic of field
‣ Is conserned with:
- What happens with data loaded
from storage layer?
- What should happen with data
inputted by user to storage layer?
‣ Examples:
- List
- Text
- Price
- Link
11. Fields
‣ Data structure holding some settings
‣ A name and a type
‣ Link: field_website
‣ Some cannot be reverted, influence
on db
‣ Settings apply everywhere field is
used