function template_preprocess_filedepot_notifications_history in filedepot 7
Same name and namespace in other branches
- 6 lib-theme.php \template_preprocess_filedepot_notifications_history()
File
- ./
lib-theme.php, line 897 - 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['file_title'] = filter_xss($rec['title']);
$variables['submitter_uid'] = $rec['submitter_uid'];
$variables['submitter_name'] = $rec['name'];
$variables['file_name'] = filter_xss($rec['fname']);
$foldername = db_query("SELECT name FROM {filedepot_categories} WHERE cid=:cid", array(
':cid' => $rec['cid'],
))
->fetchField();
$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;
}