Get Started. It's Free
or sign up with your email address
d7 by Mind Map: d7

1. fields

1.1. schema

1.1.1. a way to store your fields

1.1.2. what are the columns you need for the field

1.1.3. simple fields only have on column wich is the value of the field

1.1.4. complex fields can have several columns

1.1.5. for example, you can describe a url field

1.1.6. that has both a url, a title, an alternative value etc..., those are the columns of the field

1.2. widget

1.2.1. the way to edit the fields

1.2.2. the modules implementing a field will define widgets

1.2.3. basically a form api snipets that define the front end elements that allow you to edit the field

1.2.4. for the example of the url field, you will have 3 separate textfields

1.3. formatter

1.3.1. is the way you display the field when you are not editing it

1.4. settings

1.4.1. global affects everyway the field is used

1.4.2. persistance different settings in a given context

1.4.3. if you are sharing a field on different node types, you can choose the parameters of theses difeerent instances so you can have different settings

1.5. hooks

1.5.1. hook_field_info + _alter way to design (expose) new field types

1.5.2. hook_field_schema define the schema of the field

1.5.3. hook_formater_info + _alter

1.6. you can have several widgets and formatter for a given field

2. entities

2.1. are a sort of metaobject

2.2. a high level object

2.3. can be fieldable (erceive fields)

2.4. can support revisions

2.5. can have several bundles (sub types)

2.5.1. for nodes, a bundle is "node type"

2.5.2. node types are bundles and the bundles of the comment entity are the bundles of the parent node

2.5.3. a bundle is a kind of sub entity type so for nodes, its the node type

2.5.4. fields are pair bundle they can be in several bundles for an given entity type

2.5.5. so we need to identify the bundle for that particular comment

2.5.6. for comments, the bundle is actually the node type of the parent node

2.5.7. so you can have a different set of fields to comments attached to a given node type

2.6. can have an uri

2.7. can have build modes

2.8. hook_entity api

2.8.1. hook_entity_info + _alter DrupalEntityControlerInterface

2.8.2. hok_entity_(load|insert|update) but no delete

2.8.3. entity_load _load_multiple but no _save or _delete

2.8.4. implement missing hooks likes save or delete

3. entity

3.1. bundle

3.1.1. field instance field