You are here

function custompage_theme in Custom Page 7

Same name and namespace in other branches
  1. 6 custompage.module \custompage_theme()

Implementation of hook_theme().

Register theme tpl/functions for each custompage URL.

File

./custompage.module, line 156
Custom Page Module

Code

function custompage_theme() {
  $styled_paths = _custompage_get_mappings();
  $themes = array();
  foreach ($styled_paths as $path) {
    $key = custompage_prefix($path->key);
    $themes[$key] = array(
      'variables' => array(
        'title' => '',
        'user' => '',
        'data' => '',
      ),
      'template' => $key,
    );
  }
  return $themes;
}