I have developed a module that is used to extend a configurable list of existing node types. This modules makes fairly good use of the nodeapi hook.
The problem I am having relates to the nodeapi::view hook. It seems that whatever I do in this hook, I cannot change the content that appears before $node->title is displayed. In my case, I want to change the class specified in the
returns the language of the currently logged on user, but returns nothing when the user is 'anonymous'.
I'm trying to find some straightforward, simple way of determining what the default site language is (ie the language for 'anonymous'), whether or not the localisation module is switched on. For example, I rather hoped there might be a "$site-language" but there isn't.
This seemed the best forum to ask this. Basically I want to add content to our site but I don't want the tracker to pick up the pages as new/changed. We use the tracker to provide a way for users to quickly see what's received comments and been posted that isn't obvious on the front page.
However, this means that whenever I adjust any content, that page appears in the list. Really I want the facility to bring some pages out of the tracker's clutches, or 'spoof' them with incredibly ancient edit times so they go to the bottom of the list.
I'm trying to create a very simple type, just to see how things work. I looked at the node_example in the documentation and (almost) understand everything what is going on. I have just a simple question:
node_example stores it's data in a new table (color & quantity). Is it really needed to create a new table to store only one additional field (next to body etc)? Not that it is a big problem to do so, but I'm wondering if it is not a bit of overhead if you only want to store one small text-string. Is there no other table this can be stored in? Eg in {node} table itself?