function _field_sql_storage_indexname

Generate 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/modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
_field_sql_storage_schema in drupal/modules/field/modules/field_sql_storage/field_sql_storage.module
Return the database schema for a field. This may contain one or more tables. Each table will contain the columns relevant for the specified field. Leave the $field's 'columns' and 'indexes' keys empty to get only the base schema.

File

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

Code

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