function tableofcontents_cache_set in Table of Contents 7.2
1 call to tableofcontents_cache_set()
- tableofcontents_field_attach_view_alter in ./
tableofcontents.module - Implementation of hook_field_attach_view_alter(&$output, $context)
File
- ./
tableofcontents.module, line 203 - This is a filter module to generate a collapsible jquery enabled mediawiki style table of contents based on <h[1-6]> tags. Transforms header tags into named anchors.
Code
function tableofcontents_cache_set($entity_type, $bundle, $vid, $field, $raw, $html) {
$cid = tableofcontents_cache_key($entity_type, $bundle, $vid, $field, $raw);
cache_set($cid, $html, 'cache_tableofcontents');
}