You are here

function template_preprocess_dnd_library_preview in Scald: Media Management made easy 6

Completely contrived library preview theme function

File

dnd/modules/dnd_test/dnd_test.module, line 119

Code

function template_preprocess_dnd_library_preview(&$variables) {
  template_preprocess_dnd_library_item($variables);
  $variables['id'] = 'dnd-preview-' . $variables['i'];
  $variables['image'] = '<img src="http://' . $_SERVER['HTTP_HOST'] . base_path() . drupal_get_path('module', 'dnd_test') . '/img/item-' . $variables['img_num'] . '-S.jpg" class="drop" width="125" height="94" />';
  $variables['description'] = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
}