This hook allows a module to control the maximum file size for a file upload. Most notable would be file system storage. It could ignore the db_limit.
Call time:
In
include/upload_functions.php,
in the function phorum_get_system_max_upload.
Hook input:
An array containing the default limit, the data layer limit and the PHP limit
Hook output:
A 3 part array with the limits adjusted as you wish. The first element in the array would be the most important.
Example code:
function phorum_mod_foo_system_max_upload($data)
{
// ignore the db_limit
$data[0] = $data[2];
return $data;
}