function resmushit_trimmed_log in reSmush.it image style optimizer 7.2
Same name and namespace in other branches
- 7 resmushit.inc \resmushit_trimmed_log()
Return value
null Return the log trimmed to the correct length.
1 call to resmushit_trimmed_log()
File
- ./
resmushit.inc, line 228 - Additional functions.
Code
function resmushit_trimmed_log() {
$recent_optimalizations = variable_get('resmushit_recent_optimalizations', array());
if (sizeof($recent_optimalizations) >= variable_get('resmushit_log_size', RESMUSHIT_LOG_SIZE)) {
array_shift($recent_optimalizations);
}
return $recent_optimalizations;
}