batch_example_op_1
Definition
batch_example_op_1($nid, &$context)
developer/examples/batch_example.module, line 173
Description
Batch operation for batch 1 : lode a node...
Related topics
| Name | Description |
|---|---|
| Example batch definitions | Definitions of the batches used in this module. |
Code
<?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;
}
?> 