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

nevets’s picture

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.