Advertisement
Guest User

Untitled

a guest
May 29th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Hook structure.
  5. */
  6. function hook_node_view($node, $view_mode, $langcode) {
  7. // Do something here.
  8. }
  9.  
  10. /**
  11. * Implements hook_node_view
  12. */
  13. function my_module_name_node_view($node, $view_mode, $langcode) {
  14. $node->content['my_additional_field'] = array(
  15. '#markup' => '<p>Some additional content.</p>',
  16. '#weight' => 10,
  17. );
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement