function phptemplate_init

cis7 phptemplate.engine phptemplate_init($template)
cle7 phptemplate.engine phptemplate_init($template)
elmsmedia7 phptemplate.engine phptemplate_init($template)
icor7 phptemplate.engine phptemplate_init($template)
meedjum_blog7 phptemplate.engine phptemplate_init($template)
mooc7 phptemplate.engine phptemplate_init($template)

Implements hook_init().

File

themes/engines/phptemplate/phptemplate.engine, line 11
Handles integration of PHP templates with the Drupal theme system.

Code

function phptemplate_init($template) {
  $file = dirname($template->filename) . '/template.php';
  if (file_exists($file)) {
    include_once DRUPAL_ROOT . '/' . $file;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.