Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Prepares variables for node.tpl.php
- *
- * @see node.tpl.php
- */
- function midd_preprocess_node(&$variables) {
- $function = __FUNCTION__ . '__' . $variables['node']->type;
- if (function_exists($function)) {
- $function($variables);
- }
- }
- /**
- * Prepares variables for node--page.tpl.php
- *
- * @see node.tpl.php
- */
- function midd_preprocess_node__page(&$variables) {
- // Content type specific functionality.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement