08448380779 Call Girls In Civil Lines Women Seeking Men
Field formatters
1. Field/CCK Formatters
“God has given you one face, and you make yourself another.”
- Fortune cookie in my desk drawer
Helior Colorado
ihatespam@helior.info
3. What are Field Formatters?
• Means to present field data in a
displaying entity
4. What are Field Formatters?
• Means to present field data in a
displaying entity
• Is pluggable
5. What are Field Formatters?
• Means to present field data in a
displaying entity
• Is pluggable
• Provides a layer of configurability
6. What are Field Formatters?
• Means to present field data in a
displaying entity
• Is pluggable
• Provides a layer of configurability
• Is extendable via various methods
7. What are Field Formatters?
• Means to present field data in a
displaying entity
• Is pluggable
• Provides a layer of configurability
• Is extendable via various methods
• If done right, can be reused in any
site
8. Defining a Field Formatter:
hook_field_formatter_info()
label
description
field types
multiple values
settings
9. Rendering a Field Formatter:
hook_field_formatter_view()
Return an array or renderable
arrays – “N is the only number”
21. Ideas for Workshop
★ HTML5 Audio playback controller ★ Lightbox-likegallery for images
★ Email address “mailto:” link ★ Custom date from timestamp
★ Link to Twitter account with selectable ★ Fully customizable link from a path
styles