Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I've searched extensively and found a variety of references to this or that, but what's the definitive way to implement a custom node search?
First, some quick background. I have created a custom node module, which consists of a handful of fields. Everything works as it should.
I now need to introduce a custom search form with search results limited to the one specific node type. The form will appear in a block and be universally accessible throughout the site. This is one of the core features of the site.
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: