function _field_sql_storage_indexname
7.x field_sql_storage.module | _field_sql_storage_indexname($name, $index) |
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-7.x/
modules/ field/ modules/ field_sql_storage/ field_sql_storage.module - Implements hook_field_storage_update_field().
- _field_sql_storage_schema in drupal-7.x/
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-7.x/
modules/ field/ modules/ field_sql_storage/ field_sql_storage.module, line 93 - Default implementation of the field storage API.
Code
function _field_sql_storage_indexname($name, $index) {
return $name . '_' . $index;
}