You are here

function content_instance_tablename in Content Construction Kit (CCK) 6.3

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

Generate table name for the content field instance table.

Needed because the table name changes depending on version.

18 calls to content_instance_tablename()
content_associate_fields in ./content.module
Allows a module to update the database for fields and columns it controls.
content_copy_record_macro in modules/content_copy/content_copy.module
A handler that stores the form submissions into a $GLOBALS array
content_fields_list in includes/content.admin.inc
Menu callback; lists all defined fields for quick reference.
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.

... See full list

File

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

Code

function content_instance_tablename($version = NULL) {
  if (is_null($version)) {
    $version = variable_get('content_schema_version', 0);
  }
  return $version < 6001 ? 'node_field_instance' : 'content_node_field_instance';
}