You are here

function content_instance_tablename in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 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.

16 calls to content_instance_tablename()
content_admin_field_overview_form_submit in includes/content.admin.inc
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_module_delete in includes/content.crud.inc
Delete all data related to a module.

... See full list

File

./content.module, line 1644
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';
}