Don't call theme_link() directly. That causes all kinds of havoc and skips preprocess layers.

From the docs: https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_li...

* To optimize performance for sites that don't need custom theming of links,
* the l() function includes an inline copy of this function, and uses that
* copy if none of the enabled modules or the active theme implement any
* preprocess or process functions or override this theme implementation.

Proposed Solution

use the l() if you don't expect the prepreprocess to run.

CommentFileSizeAuthor
#3 2915610-2.patch1.98 KBjoelpittet

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Issue summary: View changes
joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new1.98 KB

eugene.ilyin’s picture

I totally agree with you. Committed.

eugene.ilyin’s picture

Status: Needs review » Fixed
joelpittet’s picture

Thanks @eugene.ilyin!

Status: Fixed » Closed (fixed)

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