_node_mass_update_helper
modules/node/node.admin.inc, строка 378
- Версии
- 6
_node_mass_update_helper($nid, $updates)
Node Mass Update - helper function.
Код
<?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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии