Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

d7 by Mind Map: d7
0.0 stars - reviews range from 0 to 5

d7

fields

schema

a way to store your fields

what are the columns you need for the field

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

complex fields can have several columns

for example, you can describe a url field

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

widget

the way to edit the fields

the modules implementing a field will define widgets

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

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

formatter

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

settings

global, affects everyway the field is used

persistance, different settings in a given context

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

hooks

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

hook_field_schema, define the schema of the field

hook_formater_info + _alter

you can have several widgets and formatter for a given field

entities

are a sort of metaobject

a high level object

can be fieldable (erceive fields)

can support revisions

can have several bundles (sub types)

for nodes, a bundle is "node type"

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

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

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

so we need to identify the bundle for that particular comment

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

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

can have an uri

can have build modes

hook_entity api

hook_entity_info + _alter, DrupalEntityControlerInterface

hok_entity_(load|insert|update) but no delete

entity_load _load_multiple but no _save or _delete

http://drupal.org/project/entities, implement missing hooks likes save or delete

entity

bundle

field instance, field