The token_token_info code (and book_token_info / menu_ui_token_info) blindly adds tokens for nodes even if the module is disabled.

Patch attached to check if the node module is enabled for doing so.

Doesn't really affect anything but removes the notice in the status report for tokens being defined without a type.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mjpa created an issue. See original summary.

Berdir’s picture

book module depends on node, so I think that part isn't necessary.

mjpa’s picture

True, updated patch that does just the node/content-type tokens and the menu_ui node one.

Berdir’s picture

Status: Needs review » Fixed

Committed.

  • Berdir committed 9cfc305 on 8.x-1.x authored by mjpa
    Issue #3059846 by mjpa: Node tokens added even if module disabled
    

Status: Fixed » Closed (fixed)

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