You are here

function tableofcontents_theme in Table of Contents 7.2

Same name and namespace in other branches
  1. 6.3 tableofcontents.module \tableofcontents_theme()
  2. 6.2 tableofcontents.module \tableofcontents_theme()
  3. 7 tableofcontents.module \tableofcontents_theme()

Implements hook_theme().

File

./tableofcontents.module, line 235
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(
      'render element' => 'toc',
      'variables' => array(
        'toc' => array(),
      ),
      'file' => 'tableofcontents.themes.inc',
    ),
    'tableofcontents_toc_text' => array(
      'render element' => 'toc',
      'arguments' => array(
        'toc' => array(),
        'output' => '',
      ),
      'file' => 'tableofcontents.themes.inc',
    ),
    'tableofcontents_back_to_top' => array(
      'render element' => 'toc',
      'variables' => array(
        'toc' => array(),
      ),
      'file' => 'tableofcontents.themes.inc',
    ),
    'tableofcontents_number' => array(
      'render element' => 'toc',
      'variables' => array(
        'toc' => array(),
      ),
      'file' => 'tableofcontents.themes.inc',
    ),
    'tableofcontents_number_text' => array(
      'render element' => 'text',
      'arguments' => array(
        'text' => '',
      ),
      'file' => 'tableofcontents.themes.inc',
    ),
  );
}