For a module I am developing, I would like it to produce 404 errors if the url is not what I'm expecting. This will get Xenu to scan it for errors better, plus just show me if there are any incorrect links.

I don't have a clue how to get my modules to return 404 errors within Drupal's Framework though. Where should I be looking to learn this?

thank you.

Comments

Raf’s picture

With 404, do you mean a page not found (with drupal_not_found()), or do you mean one of those pages that say 404 in big, huge, gigantic, cow-sized letters?

jeditdog’s picture

I definitely do not mean Cow-Sized letters. Never actually done,but I'm pretty sure I could have modified the header to get that one.

Thanks, I think drupal_not_found() is what I needed. Going to give it a try and will let you know. Thanks for the 404 error help in drupal in my custom module.