Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem / Motivation
In case if we have a lot of fields and/or modules then node quiz creation page will be broken.
We will get WSOD during token_tree generation.
Solution
We need to replace usage of token_tree to new theming element called token_tree_link.
In this case we will render only links "Browse available tokens." instead of all token trees (that generated multiple times) on initial page load.
Patch attached.
Tested on latest releases of Drupal 7 and Token module on dev version of Quiz (5.x-dev branch).
Comment | File | Size | Author |
---|---|---|---|
quiz-fix_performance_issue_with_token_tree-5.x_dev.patch | 1005 bytes | bohart | |
|
Comments
Comment #2
podarokTested functonally on simpletest.me - looks awesome
Let's get t merged, code is simple
Comment #3
crizAwesome, just wanted to create a bug report. Without this patch the quiz node edit/create page is very very very slow. Not usable.
Patch fixes it. :)
Comment #4
Da_Cloud CreditAttribution: Da_Cloud at INDICIA commentedCan confirm that the patch does what its suppose to do.
Comment #5
djdevinThis looks good, but is that theme function inside the contributed Token module? Quiz doesn't have a dependency on it.
Comment #8
djdevinI went ahead and added it. Thanks!