You are here

function _serial_create_table in Serial Field 7

Same name and namespace in other branches
  1. 6 serial.inc \_serial_create_table()

Creates an assistant serial table for a new created field.

Parameters

array $field: Serial field.

array $instance: New instance of that serial field.

1 call to _serial_create_table()
serial_field_create_instance in ./serial.module
Implements hook_field_create_instance().

File

./serial.inc, line 23
Internal functions for the Serial module.

Code

function _serial_create_table(array $field, array $instance) {
  $table = _serial_get_field_table_name($field, $instance);
  if (!db_table_exists($table)) {
    db_create_table($table, _serial_get_table_schema());
  }
}