function views_bulk_operations_move_book_action in Views Bulk Operations (VBO) 6
File
- actions/
book.action.inc, line 51
Code
function views_bulk_operations_move_book_action($node, $context) {
if (isset($context['book'])) {
$book_node = node_load($context['book']);
$bid = $book_node->nid;
$mlid = $book_node->book['mlid'];
$node->book['bid'] = $bid;
$node->book['plid'] = $mlid;
$node->book['module'] = 'book';
book_nodeapi($node, 'update', $a3 = NULL, $a4 = NULL);
drupal_set_message(t('Book page %node was successfully added to %book_node.', array(
'%node' => $node->title,
'%book_node' => $book_node->title,
)));
}
}