When I add a job, my description is:

$job_name = t('Send affiliate account statement to !username', array('!username' => l($account->name, 'user/' . $account->uid)));

When I view this on the job queue report page, all of the links have been munged by the t() call on line 153. Looking like:

http://foo.dev:8888/user/%3Cem%3Eaffiliate_statement%3C/em%3E%3Cem%3Ecli...

I don't know why that call is even there as dynamic text shouldn't be translated.

Comments

drumm’s picture

Status: Active » Closed (works as designed)

Like watchdog calls, you should not call t(). $description should be 'Send affiliate account statement to !username' and $arguments = array(..., '!username' => l(...)).