Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Prepares variables for node.tpl.php
  5. *
  6. * @see node.tpl.php
  7. */
  8. function midd_preprocess_node(&$variables) {
  9. $function = __FUNCTION__ . '__' . $variables['node']->type;
  10. if (function_exists($function)) {
  11. $function($variables);
  12. }
  13. }
  14.  
  15. /**
  16. * Prepares variables for node--page.tpl.php
  17. *
  18. * @see node.tpl.php
  19. */
  20. function midd_preprocess_node__page(&$variables) {
  21. // Content type specific functionality.
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement