Skip to content
Snippets Groups Projects
Commit f62fdd92 authored by Angie Byron's avatar Angie Byron
Browse files

#664806 by jhodgdon: Fixed phptemplate_theme() doc headers standardization.

parent bd4809c9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -3,9 +3,12 @@ ...@@ -3,9 +3,12 @@
/** /**
* @file * @file
* Handles integration of templates written in pure php with the Drupal theme system. * Handles integration of PHP templates with the Drupal theme system.
*/ */
/**
* Implements hook_init().
*/
function phptemplate_init($template) { function phptemplate_init($template) {
$file = dirname($template->filename) . '/template.php'; $file = dirname($template->filename) . '/template.php';
if (file_exists($file)) { if (file_exists($file)) {
...@@ -14,10 +17,7 @@ function phptemplate_init($template) { ...@@ -14,10 +17,7 @@ function phptemplate_init($template) {
} }
/** /**
* Implements hook_theme to tell Drupal what templates the engine * Implements hook_theme().
* and the current theme use. The $existing argument will contain hooks
* pre-defined by Drupal so that we can use that information if
* we need to.
*/ */
function phptemplate_theme($existing, $type, $theme, $path) { function phptemplate_theme($existing, $type, $theme, $path) {
$templates = drupal_find_theme_functions($existing, array($theme)); $templates = drupal_find_theme_functions($existing, array($theme));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment