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)?

1 Answer 1


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...)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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