function content_cache_tablename in Content Construction Kit (CCK) 6.3
Same name and namespace in other branches
- 6 content.module \content_cache_tablename()
- 6.2 content.module \content_cache_tablename()
Generate table name for the content cache table.
Needed because the table name changes depending on version. Because of a new database column, the content_cache table will be unusable until update 6000 runs, so the cache table will be used instead.
16 calls to content_cache_tablename()
- content_clear_type_cache in ./
content.module - Clear the cache of content_types; called in several places when content information is changed.
- content_delete in ./
content.module - Implementation of hook_nodeapi 'delete' op.
- content_delete_revision in ./
content.module - Implementation of hook_nodeapi 'delete_revision' op.
- content_flush_caches in ./
content.module - Implementation of hook_flush_caches.
- content_load in ./
content.module - Load data for a node type's fields. Implementation of hook_nodeapi 'load' op.
File
- ./
content.module, line 2109 - Allows administrators to associate custom fields to content types.
Code
function content_cache_tablename() {
if (variable_get('content_schema_version', -1) < 6000) {
return 'cache';
}
else {
return 'cache_content';
}
}