Generate a table name for a field data table.
$field: The field structure.
A string containing the generated name for the database table
function _field_sql_storage_tablename($field) {
if ($field['deleted']) {
return "field_deleted_data_{$field['id']}";
}
else {
return "field_data_{$field['field_name']}";
}
}