Currently URL tokens in various .tokens.inc files are defined... these should be moved to the UI modules, though, since the API module actually doesn't define menu items for these URLs. : )

Comments

rbayliss’s picture

Status: Active » Needs work
StatusFileSize
new5.62 KB

Hrmm... This patch cleans up the explicitly declared tokens by moving them into new _ui.tokens.inc files. However, even with these moved into the UI modules, a lot of link tokens remain from the entity_token module. A bunch of these aren't working or are duplicated as noted below:

[order:view-url] - Entity token, but doesn't seem to work.
[order:admin-url] - Entity token, but doesn't seem to work.
[order:edit-url] - Both in commerce_order_ui.tokens.inc and entity_token, entity token doesn't seem to work.

[product:edit-url] - Both in commerce_product_ui.tokens.inc and entity_token, entity token works

Honestly, I don't know enough about entities yet to tell how this can be fixed, but it does seem to be a problem since these edit URL's aren't active without their respective UI modules. Hoping someone more Drupal 7 savvy can take a look at this.

rbayliss’s picture

Status: Needs work » Needs review
StatusFileSize
new8.34 KB

Nevermind, I figured it all out. This is ready to be reviewed.

rszrama’s picture

Status: Needs review » Fixed

Tokens seemed to work fine for me. Thanks again!

Status: Fixed » Closed (fixed)
Issue tags: -low-hanging fruit

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