I create custom template for node, and put variable in template.php
$colors = array('black', 'white');
$variables['group']['color'] = $colors;
$variables['size'] = 'double';
then i also create module and want to do hook to node template.
mymodule_preproccess_node() {
$colors = array('blue', 'red', 'green');
$variables['group']['color'] = $colors;
$variables['size'] = 'regular';
}
i want to show in my result:
//colors are blue, red, green instead of black, white
foreach ($group['color'] as $color) {
print $color.', ';
}
//and size is regular instead of double
print $size;
am i right? i want to override variables in template.php with variables from my module. then if i disable my module color will back from template.php.