function field_sql_storage_field_storage_create_field

field_sql_storage_field_storage_create_field($field)

Implements hook_field_storage_create_field().

File

modules/field/modules/field_sql_storage/field_sql_storage.module, line 266
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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!modules!field_sql_storage!field_sql_storage.module/function/field_sql_storage_field_storage_create_field/7.x