D6 Determining if cron or user

<[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <20110916090615.804c86d0f7e2d7fea66bf47f0edba67b.2de77c5269.wbe@email12.secureserver.net>
I've been chasing the most annoying issue. I have a module that fires off XML when a video node is updated, in order to prepare the advertising that plays prior the video. The issue was that this process seemed to he inconsistent, and it turns out that a cron job that updates the Facebook 'likes' data is doing node saves, which triggers nodeapi with op=update just like saving a node via the node form.

I thought of adding a hidden field to the node form and testing for it, but I was wondering if there is an easier way to determine what is firing the hook, batch or user, process, something?

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.