Could you please assign the finished service links output to a property of the node object like $node->servicelinks... and then provide a preference setting for "Show Links > In Template?" If true, don't use _nodeformat at all. Just let the template designer wrap the links.

THis would spare me a lot of drama and customization when combining your links up with other buttons in a toolbar.

Great module. Thank you;

Comments

frjo’s picture

You can add this in your template.php with the function _service_links_render(). I think that is a better solution.

frjo’s picture

Assigned: Unassigned » frjo
Status: Active » Fixed

Here are some example code for template.php, I will include this in the next release.

function _phptemplate_variables($hook, $vars) {
  switch($hook) {
    case 'node':
      $url = url('node/'. $vars['node']->nid, NULL, NULL, TRUE);
      $title = drupal_urlencode($vars['node']->title);
      $vars['service_links'] = theme('links', _service_links_render($url, $title));
      break;
  }

  return $vars;
}

Use <?php print $service_links ?> to insert in your node.tpl.php file.

frjo’s picture

Instructions and example.php added to cvs.

Anonymous’s picture

Status: Fixed » Closed (fixed)