Hello,
what I'm trying to do is to theme the output of

function privatemsg_privatemsg_pm_controls($pmid) {
  return l(t('Delete message'), 'messages/delete/'. $pmid);
}

into something like this:

function phptemplate_privatemsg_privatemsg_pm_controls($pmid) {
  $pmsg_link['html'] = true;
  return l('<span><span>'.t('Delete message').'</span></span>', 'messages/delete/'. $pmid, $pmsg_link);
}

in template.php, but it does not work.
How can I do it without overwriting the privatemsg.module?
The same question applies to the "pm_block_user_privatemsg_pm_controls" in pm_block_user.module.
Wouldn't it be better if both functions use theme_links for their output?

Comments

naheemsays’s picture

Status: Active » Fixed

You might want to update to the latest 1.x-dev release as that area of code has been changed (and many other bugs been fixed) and try theming from there. and from a quick look at cvs, theme_links is now used.

berdir’s picture

And as some other theming-related things have been heavily changed, you might want to look at http://blog.worldempire.ch/api/group/theming/1 too. It explains how to theme the new listing page.

mephi-1’s picture

Wow, that was fast :-)
Thank you very much. I will test it now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.