I'm currently developing a dynamic javascript menu (module). Since it's a javascript menu I need some kind of way to tell drupal the position where the user is currently navigating in the menu. (Tree-menu). So when the user expands 3 levels of menus and then click on the "Home"-link, the menu should not collapse, but remember where the user is currently navigating.
I was wondering what would be the best way to go about creating a node from within the cron hook of the same module.
Say you wrote a node that stores RSS from different feeds. In a cron job, I would like that RSS stuff to be inserted in the node.
The first thing that came to my mind was just to use plain "INSERT INTO ..." sql, but then I am lost as to how to get the "next" node id value. After that I thought about using the implemented hook: _insert() but then I was lost as to what kind of parameter does it except and how to go about building a $node object.
I built it successfully, and it appeared almost instantly online under teh 4.7 modules downloads.
however, when i then made mods to the code to support the old style forms,
and tagged it against DRUPAL-4-6, I still do not see anything in the 4.6 downloads section