function _field_sql_storage_tablename
_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
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']}"; } }
© 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_tablename/7.x