You are here

function template_preprocess_download_file_insert_link in DownloadFile 6

Preprocess variables for the download-file-insert-link.tpl.php file.

File

./download_file.inc, line 195
Insert support for DownloadFile module.

Code

function template_preprocess_download_file_insert_link(&$vars) {
  $vars['icon'] = $vars['item']['icon'];
  $vars['url'] = $vars['item']['url'];
  $vars['class'] = '';
  $vars['title'] = '';
  $vars['name'] = $vars['item']['link_text'];
  if (!empty($vars['widget']['insert_class'])) {
    $vars['class'] = $vars['widget']['insert_class'];
  }
  if (!empty($vars['title'])) {
    $vars['title'] = $vars['title'];
  }
}