batch_example_op_1
- Versions
- 6 – 7
batch_example_op_1($nid, &$context)
Batch operation for batch 1 : lode a node...
Related topics
Code
developer/examples/batch_example.module, line 170
<?php
function batch_example_op_1($nid, &$context) {
$node = node_load($nid, NULL, TRUE);
// Store some result for post-processing in the finished callback.
$context['results'][] = $node->nid . ' : ' . $node->title;
// Optional message displayed under the progressbar.
$context['message'] = 'Loading ' . $node->title;
}
?>Login or register to post comments 