1. Adds function header documentation to the two token hooks
2. Adds a double check that $object is not empty.
3. Significantly reduces the number of calls to _category_tokens_title_to_id() when unnecessary.
4. Uses check_plain() on the non-raw token values which is standard procedure.
5. Provides pathauto with the array of the path if $options['pathauto'] = TRUE so it can clean up each path segment properly. See #881270: [bookpath], [menupath], [*path] tokens not cleaned: aliases without punctuation removed, lower casing, etc. for more information why this is necessary.
6. Returns the token listing when $type == 'all', which is standard procedure.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new8.85 KB

Also fixes extra, unnecessary whitespace.

chellman’s picture

Version: 6.x-1.0 » 6.x-1.1
Status: Needs review » Fixed

I was all set to apply this, but it's already in 1.1, so I'll mark it fixed.

Status: Fixed » Closed (fixed)

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