function _field_sql_storage_columnname

_field_sql_storage_columnname($name, $column)

Generate a column name for a field data table.

Parameters

$name: The name of the field

$column: The name of the column

Return value

A string containing a generated column name for a field data table that is unique among all other fields.

File

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

Code

function _field_sql_storage_columnname($name, $column) {
  return $name . '_' . $column;
}

© 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_columnname/7.x