The example _php_template_variables code given in template.php does not work in Drupal 5 for two reasons

  • It uses the old module_exist function rather than Drupal 5's module_exists
  • In the line...
    $vars['service_links'] = theme('links', service_links_render($vars['node']));
    

    ...the links theme in Drupal 5 expects links to be provided in the new array format not the old HTML format and so this does not render correctly.

Comments

frjo’s picture

Assigned: Unassigned » frjo

Thanks for the heads up on this, I had simply forgotten this file.

frjo’s picture

Status: Active » Fixed

Committed to 5-dev and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)