function _field_sql_storage_indexname

Generates an index name for a field data table.

Parameters

$name: The name of the field.

$column: The name of the index.

Return value

A string containing a generated index name for a field data table that is unique among all other fields.

2 calls to _field_sql_storage_indexname()
field_sql_storage_field_storage_update_field in drupal/core/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
_field_sql_storage_schema in drupal/core/modules/field/modules/field_sql_storage/field_sql_storage.module
Returns the database schema for a field.

File

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

Code

function _field_sql_storage_indexname($name, $index) {
  return $name . '_' . $index;
}