You are here

function custompage_theme in Custom Page 6

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

Implementation of hook_theme().

Register theme tpl/functions for each custompage URL.

File

./custompage.module, line 142
Custom Page Module

Code

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