OA contains many modules, fields and content types. This leads to a huge amount of tokens available for nodes and other types. The token tree form element (token_tree
) provided by the token module puts information about all tokens in the HTML of the containing page, leading to page sizes of several megabytes. As a performance improvement, a module can request a link to a popup dialog instead. This has to be enabled for each module.
My suggestion is to make this the default using a theme registry alter in oa_core so all token tree form elements use the dialog by default. In this way, not all modules have to make this change individually.
The code would be very concise:
function oa_core_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['token_tree'])) {
$theme_registry['token_tree']['variables']['dialog'] = TRUE;
}
}
If you like this idea, I'll make a patch.
Comments
Comment #2
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commented