14.08.2012, 16:41
Functions only need to return a value if that value is being used somewhere. Returning 0 or 1 in the default callbacks will tell the script whether or not to call the callback in other scripts.
If the return value is of no importance then the return statement can be omitted. Alternatively, if you have conditions in your function you may put return without any value.
If the return value is of no importance then the return statement can be omitted. Alternatively, if you have conditions in your function you may put return without any value.