onBeforeMainStart()

onBeforeMainStart()

This function is called just before the start of the main processing loop, after the initial target list of targets to process has been compiled.

This is a good place to use addTarget().

Example:

function onBeforeMainStart() {
 $_JOB.linkcheck=true; // override default to enable link checking
}