PHP Classes

File: engine/modules/core/qtags/qtags.hook.inc

Recommend this page to a friend!
  Classes of Aldo Tripiciano  >  Quanta CMS  >  engine/modules/core/qtags/qtags.hook.inc  >  Download  
File: engine/modules/core/qtags/qtags.hook.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 3 years ago
Size: 667 bytes
 

Contents

Class file image Download
<?php
/**
 * Implements hook_page_complete()
 *
 * @param Environment $env
 * The Environment.
 * @param array $vars
 * An array of variables.
 */
function qtags_page_complete($env, $vars) {
 
$html = transformCodeTags($env, $vars['page']->html);
 
$html = transformCodeTags($env, $html, array('runlast' => TRUE));

 
$vars['page']->html = $html;
}

/**
 * Implements hook_boot().
 *
 * @param Environment $env
 * The Environment.
 *
 * @param $vars
 * An array of variables.
 */
function qtags_init($env, $vars) {
  if (
$env->request[1] == 'qtag') {
   
$env->setContext('qtag');
        print
transformCodeTags($env, urldecode($env->request[2]));
    exit;
  }
}

For more information send a message to info at phpclasses dot org.