Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By qqboy on
It s very hard to understand the attaching of fields to a node or entity ?
The transform of data make me feel dizzy and tired.
Can some one help us show us a few code or vivid explaination about it.
Or recommend some links for us.
Thanks and Regards. Great appreciation.
Comments
=-=
https://api.drupal.org/api/drupal/modules!field!field.module/group/field/7
https://www.drupal.org/node/707832
https://www.drupal.org/project/examples
further you can view the code of other modules that add or allow manipulation of fields.
field_attach_load()
field_attach_load()
I watched this function many
I watched this function many times, but still have some puzzles,
There is a snippet
Why unset ($queried_entities[$id]);
and Why $entity->$field_name = $values; again ?
Can some one help us make it clear Thanks.
It s very clear that its a small part of this function. Then realized how difficult drupal code is.
God bless me.
Thanks and Regards.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js
Why unset ($queried_entities[
To be honest, I have absolutely no idea, because I've never needed to be able to understand that in order to use this function. I've never actually looked at the code in the function itself, because you don't need to understand what is happening within the function, to be able to use the function.
You are absolutely right.
You are absolutely right.
Thanks.
I am just curious.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js