function content_field_tablename in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 content.module \content_field_tablename()
- 6.2 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'.
9 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_schema in ./
content.install - Implementation of hook_schema.
- content_types_install in ./
content.install - 'Safe' version of content_types() to use in updates and installs.
File
- ./
content.module, line 1632 - 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';
}