function background_process_generate_handle in Background Process 8
Same name and namespace in other branches
- 6 background_process.module \background_process_generate_handle()
- 7 background_process.module \background_process_generate_handle()
Implements to Get a unique handle based on a callback.
1 call to background_process_generate_handle()
- BackgroundProcess::__construct in ./
background_process.class.php - Implements Constructor.
File
- ./
background_process.module, line 331 - This module implements a framework for calling funtions in the background.
Code
function background_process_generate_handle($callback) {
return md5(serialize($callback) . ':' . microtime(TRUE) . ':' . rand(1, 5000));
}