function field_sql_storage_field_storage_create_field
Implements hook_field_storage_create_field().
1 call to field_sql_storage_field_storage_create_field()
- _update_7000_field_create_field in modules/
field/ field.install - Utility function: create a field by writing directly to the database.
File
-
modules/
field/ modules/ field_sql_storage/ field_sql_storage.module, line 278
Code
function field_sql_storage_field_storage_create_field($field) {
$schema = _field_sql_storage_schema($field);
foreach ($schema as $name => $table) {
db_create_table($name, $table);
}
drupal_get_schema(NULL, TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.