Last updated October 22, 2011. Created by agentrickard on August 22, 2010.
Edited by chx, arianek, yched. Log in to edit this page.
The Field SQL Storage module provides data management for the Field module. This module uses the Field API to generate dynamic data tables for entities and fields. While this is a required core module, it may be replaced by other contributed modules that implement The Field Storage API.
Uses
This module is an internal developer API and provides no user interface.
Versions
Drupal 7
The Field SQL Storage module was introduced in Drupal 7.
Details
Default module: Yes
Dependencies: Field
Related Modules: Field
Permissions: None
API Documentation: Field storage API
Database tables:
- {field_data_[field_name]}
Standard data storage for a field. It's recommended you use _field_sql_storage_tablename to get the name of this table. - {field_revision_[field_name]}
Standard revision storage for a field. It is recommended to use _field_sql_storage_revision_tablename to get the name of this table.
You might find this information in $field['storage']['details'];. The usage of this array is very strongly discouraged and is known not to work in certain cases, like inside hook_update_N
Comments
Why are they private functions?
If it is recommended to use _field_sql_storage_tablename() & _field_sql_storage_revision_tablename() why are they private functions?