If someone knows to go into the vocabulary table and set the "module" field to "faq," then many, if not most places where "taxonomy/term/xxx" is created will be turned into "faq/xxx" automatically.

I stuck this at the very end of the module and it works just peachy:


/**
 *  Implementation of hook_term_path().
 */
 function faq_term_path($term) {
  return 'faq/'. $term->tid;
 }

If you like the idea, I will create a proper patch or commit it.

CommentFileSizeAuthor
#2 faq_term_path.patch512 bytesnancydru

Comments

nancydru’s picture

This will be needed to fix http://drupal.org/node/234413 when http://drupal.org/node/238213 is fixed.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Needs review
StatusFileSize
new512 bytes

Patch attached for 5.x.

stella’s picture

Status: Needs review » Fixed

Committed to CVS for both 5.x and 6.x. Thanks Nancy for this one.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

stella’s picture

Released in faq versions 5.x-2.10 and 6.x-1.6.

Cheers,
Stella