You are here

function _batch_example_update_http_requests in Examples for Developers 7

Utility function to increment HTTP requests in a session variable.

Related topics

2 calls to _batch_example_update_http_requests()
batch_example_op_1 in batch_example/batch_example.module
Batch operation for batch 1: load a node.
batch_example_op_2 in batch_example/batch_example.module
Batch operation for batch 2 : load all nodes, 5 by five.

File

batch_example/batch_example.module, line 304
Outlines how a module can use the Batch API.

Code

function _batch_example_update_http_requests() {
  $_SESSION['http_request_count']++;
}