The tokens do not work, and actually break other tokens. You can see this in the status report.

Two things to fix this:

  1. In taxonomy_title.module remove taxonomy_title_hook_info(). The documentation makes it look like you need it, but token_info and tokens get registered in system.api.php.
  2. The attached file implements the correct hooks.

Comments

Priority:Critical» Normal

Hi Andrew,

Thanks for the feedback. This is not a critical issue, since the module is still in 'dev' that means we're still working out issues like this. I'll look over your code and try to incorporate it when I have time, but please see http://drupal.org/patch/submit on submitting patches. You'll find that changes will get in to modules much faster if you can provide patches, since that makes it much easier for us to make the same change on the working branch. :)

Title:Tokens work incorrectly and break other tokens.Update tokens for use with Drupal 7
Status:Active» Needs review
StatusFileSize
new2.76 KB

Thanks for the code sample. This has proven very helpful in cleaning up the tokens and getting them working for D7 :)

You should check out Drupal's coding standards for Drupal syntax relating especially to including closing php tags (don't use them) and soft tabs (two spaces).

Attached is a patch that updates this module's use of tokens.

Status:Needs review» Fixed

I'm committing these tokens. Please re-open if they don't work for you.

Status:Fixed» Closed (fixed)

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