You are here

function content_field_tablename in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 content.module \content_field_tablename()
  2. 6 content.module \content_field_tablename()

Generate table name for the content field table.

Needed because the table name changes depending on version. Using 'content_node_field' instead of 'content_field' to avoid conflicts with field tables that will be prefixed with 'content_field'.

13 calls to content_field_tablename()
content_associate_fields in ./content.module
Allows a module to update the database for fields and columns it controls.
content_field_instance_delete in includes/content.crud.inc
Delete an existing field instance.
content_field_instance_read in includes/content.crud.inc
Load a field instance.
content_notify in ./content.module
Modules notify Content module when uninstalled, disabled, etc.
content_schema in ./content.install
Implementation of hook_schema.

... See full list

File

./content.module, line 2018
Allows administrators to associate custom fields to content types.

Code

function content_field_tablename($version = NULL) {
  if (is_null($version)) {
    $version = variable_get('content_schema_version', 0);
  }
  return $version < 6001 ? 'node_field' : 'content_node_field';
}