You must create a preprocess function, for the template:
<?php
function MY_MODULE_preprocess_TEMPLATE(&$variables) {
$VAR_NAME = 'my_var';
$variables['varname'] = $VAR_NAME;
}
?>
Clear the cache.
- Add new comment
- 282 views