You are here

function resmushit_trimmed_log in reSmush.it image style optimizer 7

Same name and namespace in other branches
  1. 7.2 resmushit.inc \resmushit_trimmed_log()

Return value

null Return the log trimmed to the correct length.

1 call to resmushit_trimmed_log()
resmushit_log in ./resmushit.inc

File

./resmushit.inc, line 297
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;
}