I'm doing work with extending taxonomy terms for special cases - as an offshoot of the EOL taxonomy sprint.
Here's a patch that assists in analyzing the state of a term object. For most uses the result will be trivial (terms are not complex objects) but when used in conjunction with the term enhancers
- taxonomy_enhancer
- taxonomy_image
- term_relation_types
- taxidermy
- taxonomy_xml
- and the nascent taxonomy_term_load (for core D7)
this information is very useful.
In any case, it fits with the functions already provided by devel.module

It:
Adds a "Dev View" Local tab to both the
admin/content/taxonomy/edit/term/%
taxonomy/term/%
pages, dumping (as usual) an object representation.

Example showing the result of a term with taxonomy_enhancer, taxonomy_image adding term data

3 things.
- we do not yet have a menu loader wildcard for terms, but catch's taxonomy_term_load() will serve that purpose soon. So there's an extra callback function to emulate it.
- Only the above mentioned modules so far actually do (or will soon) use the hook_taxonomy_term_load() that I'm invoking - but it's transparent until then, so it's looking ahead.
- It required a small bit of oddness in making the MENU_LOCAL_TASK show up on a menu that wasn't a container before, but it holds together.

.dan.

Comments

dman’s picture

dman’s picture

OK, a small update to the menu local item trick. For those that don't have edit_term (D6) already enabled (it's coming in D7).
Try this instead of the above.

PS. devel.module doesn't look good in coder.module review :-}

moshe weitzman’s picture

Status: Needs review » Needs work

I like this in principal . I would think that existing menu items should be changed via hook_menu_alter() instead of hook_menu() .. .Do we need a check if taxonomy module is enabled?

Please feel free to submit a code style patch for devel. I'd love that.

dman’s picture

1. OK, I hadn't seen hook_menu_alter used before. I'll see if it does the job. I know what I had to do was strange.
2. I imagine that if there are no taxonomy pages available, then taxonomy/term/% won't do anything. I'll try a test.
3. ... :-? Maybe.

moshe weitzman’s picture

Any update?

moshe weitzman’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Patch would be great. D7 first.

moshe weitzman’s picture

Status: Needs work » Fixed

this was added a while ago

Status: Fixed » Closed (fixed)

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