You are here

function template_preprocess_filedepot_notifications_history in filedepot 6

Same name and namespace in other branches
  1. 7 lib-theme.php \template_preprocess_filedepot_notifications_history()

File

./lib-theme.php, line 801
lib-theme.php Theme support functions for the module

Code

function template_preprocess_filedepot_notifications_history(&$variables) {
  global $base_url;
  $filedepot = filedepot_filedepot();
  $rec = $variables['rec'];
  $variables['notification_type'] = t('@type', array(
    '@type' => $filedepot->notificationTypes[$rec['notification_type']],
  ));
  $variables['submitter_uid'] = $rec['submitter_uid'];
  $variables['submitter_name'] = $rec['name'];
  $variables['file_name'] = filter_xss($rec['fname']);
  $foldername = db_result(db_query("SELECT name FROM {filedepot_categories} WHERE cid=%d", $rec['cid']));
  $variables['folder_name'] = filter_xss($foldername);
  $variables['fid'] = $rec['fid'];
  $variables['cid'] = $rec['cid'];
  $variables['notification_date'] = strftime('%b %d %y, %I:%M', $rec['datetime']);
  $variables['site_url'] = $base_url;
}