You are here

function la_get_http_requests in Location 7.3

Utility function to count the HTTP requests in a session variable.

Return value

int Number of requests.

1 call to la_get_http_requests()
la_batch_finished in contrib/location_autofill/la.module
Batch finished callback.

File

contrib/location_autofill/la.module, line 205
Location autofill routines.

Code

function la_get_http_requests() {
  return !empty($_SESSION['http_request_count']) ? $_SESSION['http_request_count'] : 0;
}