1 system.install | system_update_1038() |
Upgrade or prepare for token module in core.
Related topics
File
- core/
modules/ system/ system.install, line 2735 - Install, update and uninstall functions for the system module.
Code
function system_update_1038() {
// Manually install the schema for token's cache table.
if (!db_table_exists('cache_token')) {
$cache_token = backdrop_get_schema_unprocessed('system', 'cache');
$cache_token['description'] = 'Cache table for token information.';
db_create_table('cache_token', $cache_token);
}
// Remove the entry for the token module in the system table. This will
// "disable" the module if present.
db_query("DELETE FROM {system} WHERE name = 'token' AND type = 'module'");
}