Hi,
currently I develop my own module using Eclipse in combination with PHPeclipse.
However, until now I wasn't able to debug my own .module file using DBG in the drupal framework. It worked for a simple test PHP page so the settings were, in that case, somewhat correct.
Can anybody give some advice how to debug my own .module file within the drupal framework?
I've got a site working using the story content type, and the client would like one additional field added. Now in Drupal 4.7 my understanding was that I would need to create a new node type based on story. Either in a module or using CCK. However in Drupal 5.0 the Story description in Content Types indicates that modules can add fields to the story type.
Just one simple question: How can I trigger a 404 error? I need to dynamically decide whether a page exists in that case or not (the autocomplete script has access to that page, all other requests should be stopped with a 404. No 403, I don't want to make people curious).
I'm using the publishing module, somewhat hacked up to work with 5.x. In it there is a filetered view which I have renamed "ops/mine" that shows the a summary reports of workflows which belong to the current user -- it works fine if I type it in as a URL.
I'd like to put this view in the menu system, but I can't seem to figure out how to direct the menu callback to return the view. Here's my modified code: