This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Debug module files within Drupal using DBG/eclipse

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?

Adding fields to story type

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.

Set 404 error

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).

Help me put a view into the menu

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:

Gibberish lettering...

http://messcasts.com/user

View that page. Then tell me how the heck I can get rid of all that gibberish crap.

Thanks.

help with db_query_temporary pls

Goal : say I have a term (term-a) i am trying to create a list of all terms used in nodes that use term-a

First I try to create a temporary table listing the nid's of nodes that have term-a (tid = 4)

$sql = "SELECT nid FROM {term_node} tn WHERE tid = '4'";
$result = db_query_temporary($sql, 'tmptable');

so far so good I think..

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions