https://www.zyxware.com/articles/4817/adding-meta-tags-to-custom-pages-programmatically#comment-26534
Drupal
https://www.dru.io/question/5837
// Добавляет Canonical
function pages_in_theme_preprocess_html(&$var) {
$canonical_tag = array(
'#type' => 'html_tag',
'#tag' => 'link',
'#attributes' => array(
$node->path['pathauto'] = 1;
node_save($node);
commerce/modules/checkout/includes/commerce_checkout.pages.inc
Функция: function commerce_checkout_router
function pages_in_theme_block_view_alter(&$data, $block){
$field_teplo_tax = get__und($entity, 'field_teplo_tax', 'tid');
$field_teplo_tax_term = taxonomy_term_load($field_teplo_tax);
$is_object__field_teplo_tax_term = is_object ($field_teplo_tax_term);
$tid = (int) $field_teplo_tax; // WARNING :)
// Обвязка без контекста и бехаувера
(function ($) {
$(function () {
hightMagicing_34 (4, 'kategory_items', 'kategory_item_div', 'kategory_caption');
});
}) (jQuery);
<?
print _minihtml_html($print_result)