I am working on a complex module that requires multiple views that interact with nodes, and can set a taxonomy term for that node.
Eg a view is Applications Placed, the node is Applications, the vocab is Status, the taxonomy is Placed.

I want to be able to transfer the vocab and individual statuses, eg New, Contacted, Waiting, Placed; from one installation to the next and have the TIDs consistent (because the views and other parts of the module including templates rely upon those values). But how can I do that if the Taxonomy data table is Auto-incremented and possibly completely different per site? 

Am I overloading the use of Taxonomy, and should use another, more consistent and static method? What would that look like, and how can I make it easily available to Views as a contextual filter?

Accepted answer

I can't quite visualize exactly how everything fits together, but would it be feasible to use taxonomy_term_load_multiple_by_name() to get the term?

You can use PHP to get values in the Views contextual filter.

Comments

I can't quite visualize exactly how everything fits together, but would it be feasible to use taxonomy_term_load_multiple_by_name() to get the term?

You can use PHP to get values in the Views contextual filter.

Thanks bro, I think I can make that work! I would just need to make a unique vocab name and then every taxonomy term being created by my module would be happy in it's own TID, that I can pull by using that API call.

Excellent. Pleased I could help