function field_sql_storage_field_storage_create_field

7.x field_sql_storage.module field_sql_storage_field_storage_create_field($field)

Implements hook_field_storage_create_field().

1 call to field_sql_storage_field_storage_create_field()
_update_7000_field_create_field in drupal/modules/field/field.install
Utility function: create a field by writing directly to the database.

File

drupal/modules/field/modules/field_sql_storage/field_sql_storage.module, line 213
Default implementation of the field storage API.

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);
}