function _field_sql_storage_revision_tablename

_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

File

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']}";
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!modules!field_sql_storage!field_sql_storage.module/function/_field_sql_storage_revision_tablename/7.x