_node_mass_update_helper

Тебя еще не убедили эти надписи? Присоединяйся к нам, вместе мы все здесь переведем!

modules/node/node.admin.inc, строка 378

Версии
6
_node_mass_update_helper($nid, $updates)

Node Mass Update - helper function.

▾ 2 функции вызывают _node_mass_update_helper()

node_mass_update in modules/node/node.admin.inc
Make mass update of nodes, changing all nodes in the $nodes array to update them with the field values in $updates.
_node_mass_update_batch_process in modules/node/node.admin.inc
Node Mass Update Batch operation

Код

<?php
function _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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему