You are here

function template_preprocess_scald_file_render in Scald File Provider 7

Processes variables for scald_file_render.tpl.php.

Defines theme hook suggestions to be able to overwrite the template by context.

File

./scald_file.module, line 362
Scald File is a Scald Atom Provider for Files.

Code

function template_preprocess_scald_file_render(&$variables) {
  $variables['theme_hook_suggestions'][] = 'scald_file_render';
  $variables['theme_hook_suggestions'][] = 'scald_file_render__' . $variables['vars']['context'];
}