[development] Altering links

Salvatore De Paolis iwkse at gmx.com
Thu Nov 18 18:30:30 UTC 2010


Hi all,

I need to alter some node links, in the specific I'd like some icon near
comment link.
Right now I'm doing it using the hook, link_alter but since it's basically
something related to the theme, I'd like to do it within the theme.

I'm trying with template_preprocess_block but it does not seems ti work.

Code looks briefly like:

$node = $vars['node'];
$node->links['comment_comments']['title'] = '<img src="foo"/>';
..
$vars['links'] = $node->links;

I suppose this is not the correct way, any hints?

regards


More information about the development mailing list