So this is the hook for node view later.
function hook_node_view_alter(&$build) {
// Code
}
To use that hook...
/**
* Implements hook_node_view_alter().
*/
function my_module_node_view_alter(&$build) {
// Example of how to create a variable.
$vid = $build['body']['#object']['vid’];
// Create a placeholder for original vid value.
$build['body']['#object']['original_vid'] = $vid;
// Reset the value of vid.
$build['body']['#object']['vid’] = NEW_VALUE;
}
thanks for answering my post. i trying to hard w/ this theming stuff but it's not easy.
see the screen snaps here. that generates an error
in this example i'm hacking bartik core theme i know that's not best practice but this is sandbox site