You are here

function stage_file_proxy_preprocess_picture in Stage File Proxy 7

Implements hook_preprocess_HOOK() for theme_picture().

File

./stage_file_proxy.module, line 483
Stage File Proxy Module.

Code

function stage_file_proxy_preprocess_picture(&$variables) {

  // Run the image path through the stage file proxy process before the call
  // to image_load() makes everything fail in theme_picture().
  if (!empty($variables['uri'])) {
    stage_file_proxy_process_file_uri($variables['uri']);
  }
  elseif (!empty($variables['path'])) {
    stage_file_proxy_process_file_uri($variables['path']);
  }
}