function tableofcontents_theme in Table of Contents 7
Same name and namespace in other branches
- 6.3 tableofcontents.module \tableofcontents_theme()
- 6.2 tableofcontents.module \tableofcontents_theme()
- 7.2 tableofcontents.module \tableofcontents_theme()
Implementation of hook_theme().
Return value
Array of theme hooks this module implements.
File
- ./
tableofcontents.module, line 308 - 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_theme() {
return array(
'tableofcontents_toc' => array(
'variables' => array(
'toc' => NULL,
),
'file' => 'tableofcontents.pages.inc',
),
'tableofcontents_toc_text' => array(
'arguments' => array(
'toc' => NULL,
),
'file' => 'tableofcontents.pages.inc',
),
'tableofcontents_back_to_top' => array(
'variables' => array(
'toc' => NULL,
),
'file' => 'tableofcontents.pages.inc',
),
'tableofcontents_number' => array(
'variables' => array(
'toc' => NULL,
),
'file' => 'tableofcontents.pages.inc',
),
'tableofcontents_number_text' => array(
'arguments' => array(
'toc' => NULL,
),
'file' => 'tableofcontents.pages.inc',
),
);
}