hook_term_path

hefox - March 30, 2009 - 03:33
Project:Node Auto Term [NAT]
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Somewhat like the option about term path for views, it'd be nice if NAT had an option to use hook_term
_path so taxonomy_term_path returns the node url when desired.

If a module other than taxonomy is set for a vocabulary, taxonomy_term_path calls _term_path and uses that url instead of the regularly one for the term path. Ie, if NAT was set as the module for vocabularies associated with a content type and had a hook_term_path implementation to link to the node corresponding to that term, anytime taxonomy_term_path is called the node url could be returned when avaliable. (if nothing returned, default term path is used).

Steps to implement:
Add option, set option
Set effected vocabulary's module to NAT
nat_term_path

Core modules and various other modules call taxonomy_term_path to get the term path, so it'd be quite a useful feature

#1

anantagati - March 30, 2009 - 06:29

Good idea.

#2

anantagati - March 30, 2009 - 06:30
Assigned to:Anonymous» anantagati

#3

anantagati - June 7, 2009 - 15:05
Assigned to:anantagati» Anonymous
 
 

Drupal is a registered trademark of Dries Buytaert.