You are here

function _user_delete_node_mass_update_helper in User Delete 6.2

Node Mass Update - helper function.

2 calls to _user_delete_node_mass_update_helper()
user_delete_node_mass_update in ./user_delete.module
Make mass update of nodes, changing all nodes in the $nodes array to update them with the field values in $updates.
_user_delete_node_mass_update_batch_process in ./user_delete.module
Node Mass Update Batch operation

File

./user_delete.module, line 645
Provide account cancellation methods and API to provide the same functionalty as Drupal 7 for cancelling accounts.

Code

function _user_delete_node_mass_update_helper($nid, $updates) {
  $node = node_load($nid, NULL, TRUE);
  foreach ($updates as $name => $value) {
    $node->{$name} = $value;
  }
  node_save($node);
  return $node;
}