You must create a preprocess function, for the template:
function MY_MODULE_preprocess_TEMPLATE(&$variables) {
$VARIABLE_NAME = 'my_variable';
$variables['varname'] = $VARIABLE_NAME ;
}
Clear the drupal cache.
- Add new comment
- 3471 views
Comments
informative
Submitted by veena (not verified) on Mon, 07/12/2021 - 10:29
informative
Add new comment