function _field_sql_storage_tablename

cis7 field_sql_storage.module _field_sql_storage_tablename($field)
cle7 field_sql_storage.module _field_sql_storage_tablename($field)
elmsmedia7 field_sql_storage.module _field_sql_storage_tablename($field)
icor7 field_sql_storage.module _field_sql_storage_tablename($field)
meedjum_blog7 field_sql_storage.module _field_sql_storage_tablename($field)
mooc7 field_sql_storage.module _field_sql_storage_tablename($field)

Generate a table name for a field data table.

Parameters

$field: The field structure.

Return value

A string containing the generated name for the database table

31 calls to _field_sql_storage_tablename()
date_api_database_info in sites/all/modules/ulmus/date/date_api/date_api.module
Temporary helper to re-create equivalent of content_database_info().
editableviews_field_views_data_alter in sites/all/modules/ulmus/editableviews/editableviews.views.inc
Implement hook_field_views_data_alter.
editableviews_views_data_alter in sites/all/modules/ulmus/editableviews/editableviews.views.inc
Implements hook_views_data_alter().
entityreference_field_views_data_views_data_alter in sites/all/modules/ulmus/entityreference/views/entityreference.views.inc
Implements hook_field_views_data_views_data_alter().
entityreference_update_7001 in sites/all/modules/ulmus/entityreference/entityreference.install
Drop "target_type" from the field schema.

... See full list

2 string references to '_field_sql_storage_tablename'
field_sql_storage_field_storage_query in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_query().
hook_field_storage_query in modules/field/field.api.php
Execute an EntityFieldQuery.

File

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

Code

function _field_sql_storage_tablename($field) {
  if ($field['deleted']) {
    return "field_deleted_data_{$field['id']}";
  }
  else {
    return "field_data_{$field['field_name']}";
  }
}