With Drupal 7.34 and a Zen sub-theme I'm not getting any body classes from this module. Am I correct to assume that as long as a Global Filter block exists anywhere on the page, I should have body classes? I've switched to Bartik and the problem persists, so it's not specific to my theme.

I'm using a single Global Filter based on a taxonomy selection with 3 options, assigned to a header region as a block, list of hyperlinks widget. Session API is being used, if that makes a difference.

Comments

RdeBoer’s picture

Thanks for your report.
Yep, you should have body classes...
Looks like a bug indeed.
Rik

errand’s picture

Hello, it's true.
No classes added

errand’s picture

Status: Active » Fixed

Hello there.
replacing

$filter_names = global_filter_active_filter_names(TRUE);
with

$filter_names = global_filter_active_filter_names_list(TRUE);

fixes this issue.
Cheers

  • RdeBoer committed eca33e9 on 7.x-1.x
    Fix for Issue #2389017: Body Classes are missing in action. Thanks...
RdeBoer’s picture

I've checked in a similar fix. Available now in 7.x-1.x-dev
Thanks @errand

Status: Fixed » Closed (fixed)

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