Add title calculation by a vocabulary string

Amir Simantov - October 1, 2009 - 18:19
Project:Taxonomy Title
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:fixed
Description

I would like to write a module that is what taxonomy_title does but for a whole dictionary. My module should run before taxonomy_title - it would build the title by a string inserted for the vocabulary the term belongs to + the term itself. Only then, the taxonomy_title module should run and override specific terms if they have a specific title.

If I implement hook_taxonomy() and hook_preprocess() in both 2 different modules: 'a' and 'b' - which is overriding which?

Back to my question now; if I want my hook overrides to run before taxonomy_title ones, should I call it:
1. taxonomy_auto_title - alphabetically before taxonomy_title, or
2. taxonomy_vocabulary_title alphabetically after taxonomy_title.

Thanks.

#1

hass - November 18, 2009 - 23:58
Category:feature request» support request
Status:active» fixed

It sounds like you are asking for token support and nothing else...!? This should go into #575440: Provide token for taxonomy title - code

Otherwise you are able to "name" your module as you like! The *last* one wins if $variables are overridden. You can give your module a "weight" in the system table and make hereby sure the order is correct if needed.

#2

Amir Simantov - November 22, 2009 - 16:46

Thanks hass!

 
 

Drupal is a registered trademark of Dries Buytaert.