cck makes it possible to have a node template file for each content type with a file named, e.g. node-my_content_type.tpl.php

however, there is no corresponding template_preprocess_node_my_content_type() function that can be called to preprocess this template.

views very nicely makes it possible to have a preprocess function for any views template. it would be nice if cck did the same!

here's a workaround i found in the forums: https://drupal.org/node/684816

Comments

firebus’s picture

Title: Register preprocess functions for each node type » Register node preprocess functions for each content type