PHP Classes

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

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/core/meta/meta.hook.inc   Download  
File: engine/modules/core/meta/meta.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: 6 years ago
Size: 316 bytes
 

Contents

Class file image Download
<?php

/**
 * Implements hook_page_init().
 *
 * @param Environment $env
 * The Environment.
 *
 * @param array $vars
 * Mixed variables.
 */
function meta_page_init($env, $vars) {
 
$metadata = &$vars['metadata'];
 
// Page metadata.
 
$env->hook('metadata', $vars);

 
$env->setData('metadata', $metadata);

}