Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
First, Great work on the module! I am trying to build services with your API and, unless I'm wrong, bracket_api_set_competitors is missing "node_save($node);" in it as it never gets updated once called.
Here's my code
$competitors=array(
'Aaron',
'Richard',
'Jeff',
'Dan',
'Molly',
'Max',
'Jim',
'Sax');
$node = node_load(array('nid'=>14));
bracket_api_set_competitors($node, $competitors);
//Since it doesn't contain ndoe_save(..), I then have to run this:
node_save($node);
Shouldn't this function contain node_save?
Comments
Comment #1
jimbullington CreditAttribution: jimbullington commentedThis is by design - none of the bracket manipulating functions actually update the bracket node. This was done so that more than one call could be made to the API without saving the node multiple times. The workflow should be:
Hope this helps.
Comment #2
anAgent CreditAttribution: anAgent commentedThanks, that does make sense. I'm closing the non-issue.