You are here

function tableofcontents_cache_key in Table of Contents 7.2

2 calls to tableofcontents_cache_key()
tableofcontents_cache_get in ./tableofcontents.module
TOC cache management
tableofcontents_cache_set in ./tableofcontents.module

File

./tableofcontents.module, line 208
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_key($entity_type, $bundle, $vid, $field, $raw) {
  return md5("{$entity_type}-{$bundle}-{$vid}-{$field}") . md5($raw);
}