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 am using the services 3.0 module and it allows me to create / retrieve a node when the node id is supplied.
My question is, is there a way to supply a search term to search the title or whatever field of a node and return a list or single match for that search term. - just want to check existance of a node really.
Having a time being dumb around grabbing nid and title form a query and adding them to a select as 'value' display value' I am from the code below I am getting optgroups created. Likely something really obvious.
$query = "Select nid, title from {node} where type = 'subject'";
$result = db_query($query);
$icount = 0;
$options = array();
foreach ( $result as $currentitem) {
$options[$icount] =array($currentitem->nid => $currentitem->title);
$icount++;
}
Hey All, I am having what I consider to be a pretty strange problem. I have a custom piece of code that is very simple and all the documentation says that this is all you need:
I'm looking for a way to compile a mailing list(s) for selected users (users whom I decide should be on the list) and then to use the list to send an email.
This does not necessarily have to be a recurring email system; just an on demand email would be fine.
The important thing is to be able to scroll through a user list and select ones that I want to contact.