The template.php in the D6 package contains a _phptemplate_variables($hook, $vars) example that is D5 only. In D6 this code must be moved into service_links_preprocess_page().
The template.php in the D6 package contains a _phptemplate_variables($hook, $vars) example that is D5 only. In D6 this code must be moved into service_links_preprocess_page().
Comments
Comment #1
NiklasBr commentedThis is still an issue with the latest snapshot. I am unable to get this to work with Drupal v. 6.4, this does not work either:
Comment #2
hass commentedTry to add
drupal_rebuild_theme_registry();on top of your template.php while development...Comment #3
NiklasBr commentedThanks for your help hass, however, it did not solve my problem. My node.tpl.php has the following code:
<?php /*stuff*/ <div class="node_sociable"><?php print $service_links ?></div> /*other stuff*/ ?>and my template.php contains the code pasted in my first post. Caches have been cleaned, user permissions are double-checked and Service links preferences are set to display on all node types, yet all that is returned is<div class="node_sociable"></div>.Comment #4
hass commentedHm, please open a new case for your issue.
Comment #5
NiklasBr commentedFor future reference, it can be found here.
Comment #6
TheCrow commentedadded examples in template.php long time ago!