I am overriding the registration_link theme function in my site's theme and I would like to have some additional context passed in through the $variables variable so that I can add classes based on this context. Attached is a patch to add the registration type, entity type and entity to the theme variables. Other then my particular use I can see this being useful for others as well.

cheers.

Comments

acrazyanimal’s picture

Now uploading the patch file.

acrazyanimal’s picture

Status: Active » Needs review
CountPacMan’s picture

Status: Needs review » Fixed

Patch works. Will push to dev. Thanks!

  • CountPacMan committed 8067af3 on 7.x-1.x
    Issue #2210689 by acrazyanimal: Some additional theme_registration_link...

  • CountPacMan committed 8067af3 on 7.x-2.x
    Issue #2210689 by acrazyanimal: Some additional theme_registration_link...

Status: Fixed » Closed (fixed)

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