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
Here we see
line 102 in field.api.php from modules/field folder
In the Field API, each field has a type, which determines what kind of data
* (integer, string, date, etc.) the field can hold, which settings it provides,
* and so on. The data type(s) accepted by a field are defined in
* hook_field_schema();
So I wonder why field type already decide the data type, but also hook field schema will do the same thing?
Can some one help us to make it clear. Thanks very much.
Comments
Note that the data type for
Note that the data type for the field and the schema do not need to be the same. In this case the field converts from one to the other.
thanks thanks.
thanks thanks.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js