Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $node = node_load(1);
- $node->mycustomdata = 'mydata'; // This is the data i want passed through
- return node_view($node, 'teaser');
- function MYMODULE_preprocess_node(&$variables) {
- $node = $variables['node'];
- $variables['mycustomdata'] = $node->mycustomdata; // Here is where i want to access the data
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement