Skip navigation
Help

_field_sql_storage_revision_tablename

7 field_sql_storage.module _field_sql_storage_revision_tablename($field)

Generate a table name for a field revision archive table.

Parameters

$name: The field structure.

Return value

A string containing the generated name for the database table

22 calls to _field_sql_storage_revision_tablename()

2 string references to '_field_sql_storage_revision_tablename'

File

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

Code

function _field_sql_storage_revision_tablename($field) {
  if ($field['deleted']) {
    return "field_deleted_revision_{$field['id']}";
  }
  else {
    return "field_revision_{$field['field_name']}";
  }
}