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;
}
so tell me, how well do you know Drupal?
there are no Drupal meet ups where i live unfortunately. going it alone!