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 modules/
field/ modules/ field_sql_storage/ field_sql_storage.module - Implements hook_field_storage_update_field().
- _field_sql_storage_schema in 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
-
modules/
field/ modules/ field_sql_storage/ field_sql_storage.module, line 136
Code
function _field_sql_storage_indexname($name, $index) {
return $name . '_' . $index;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.