2

We have many content types and fields, and the "Edit Node Type" page is taking about 30 seconds to load. The culprit appears to be a module that lists all of the available "node" tokens, using this code:

$form['modulename']['token_help'] = array(
  '#theme' => 'token_tree',
  '#token_types' => array('node'),
);

'#token_types' => array('node') gives Node tokens for every content type, even though the form will only pertain to the one Content Type.

Is there a way to limit the token tree to display only node tokens pertaining to a specific content type (without using Token Tweaks module)?

3

I'll just answer this as a "No". Token Tweaks is what I needed to use to prevent long page loads (30 seconds at times...)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.