You are here

function _user_delete_comment_mass_update_helper in User Delete 6.2

comment Mass Update - helper function.

2 calls to _user_delete_comment_mass_update_helper()
user_delete_comment_mass_update in ./user_delete.module
Make mass update of comments, changing all comments in the $comments array to update them with the field values in $updates.
_user_delete_comment_mass_update_batch_process in ./user_delete.module
comment Mass Update Batch operation

File

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

Code

function _user_delete_comment_mass_update_helper($cid, $updates) {
  $comment = _user_delete_comment_load($cid);
  foreach ($updates as $name => $value) {
    $comment->{$name} = $value;
  }
  _user_delete_comment_save($comment);
  return $comment;
}