Closed (outdated)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
Field Example
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2014 at 14:46 UTC
Updated:
18 Feb 2023 at 18:14 UTC
Jump to comment: Most recent
Comments
Comment #1
mile23There are two examples which create fields: field_example and field_permission_example.
There is an example of attaching fields to an entity in node_example. You can see it happen here: http://cgit.drupalcode.org/examples/tree/node_example/node_example.modul... Nodes (and users) are just another form of entity.
I'm not sure what you mean about 'flows.' In Field API you define widgets and formatters; you could define as many formatters for a field type as you wish, and then use different formatters for different display modes (such as Full vs. Teaser). This is demonstrated in both of the field examples... In field_example we present the same data with different widgets and formatters. In field_permission_example, we add a formatter for the existing text field.
As for the two user forms, that would be interesting to demo. Do you have a patch?
Comment #2
mile23Oops... Double post.
Comment #3
mile23Comment #4
mile23Generally unassigning issues. Please re-assign yourself as desired.
Comment #5
jungleNo activity for over 6 years. I am closing this. Please feel free to reopen if necessary.
Thanks!