The preprocess function template_preprocess_lightbox2_insert_image() stands in the lightbox2.insert.inc file, but this is not specified in the lightbox2_theme() function.

The consequence is that, if the lightbox2.insert.inc file is not already included on theme registry build operation, the expected preprocess function is simply not added in the list of preprocess functions.

Comments

b-prod’s picture

Status: Active » Needs review
StatusFileSize
new462 bytes

The patch below fixes this.

feng-shui’s picture

Patch works beautifully, without it when the insert button is cliched the href and src attributes for the link and image are empty.

Thanks!

b-prod’s picture

Status: Needs review » Reviewed & tested by the community

According to Feng-Shui comment (#2), I tag this issue as reviewed.

pifagor’s picture

Issue summary: View changes

Look good

alex_optim’s picture

Good for me.

  • voleger committed c14a8c1 on 6.x-1.x authored by B-Prod
    Issue #1275910 by B-Prod, voleger: File declaration missing in...
voleger’s picture

Status: Reviewed & tested by the community » Fixed

Fixed. Thanks.

Status: Fixed » Closed (fixed)

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