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.
Is there a function to determine if a node exists? I could use node_load, but I'm not sure what it returns if a node has been deleted, and I don't actually need to load the node in this case, only to make sure it hasn't been deleted.
As a side note, is there a way to easily determine another node's type without loading it?
I'm trying to find a way to add an image node within the creation of another type of node. I think the following code will (sort of) work, but I don't think it's the right approach. (Unfortunately, I also need the nid returned, so this won't really work.)
I'm looking for anyone interested in building a mozdex.com search module that incorporates the OpenSearch RSS feed to allow search blocks and results within drupal.
If anyone is interested in what should be a straightforward module, we will feature you on our home page for a month.