In IRC today, I proposed to merlinofchaos that we either make nodequeue_subqueue_size_text() itself a theme function, or at least break out the parts of it into their own theme functions (e.g. theme_nodequeue_subqueue_empty_text()). This will let sites customize this text without having to either "translate" it or modifying the module code directly. I've got this in progress already, so I'll post a patch soon. Just wanted to open the issue now so I don't lose track of it.

Comments

dww’s picture

Ok, I've got both approaches coded and tested. I'll attach both for comparison/review.

I think I like the change with the smaller theme functions, that keeps the logic in the module itself (attached here).

dww’s picture

Status: Active » Needs review
StatusFileSize
new3.04 KB

And here's the version that just makes the whole function a theme function and punts.

dww’s picture

whoops, patch from #1 had a minor bug where i left off the $count argument at one of the call sites.

merlinofchaos’s picture

Status: Needs review » Fixed

I'm not completely sure about doing this but I committed it anyhow.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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