function template_preprocess_filedepot_folder_breadcrumb in filedepot 7
Same name and namespace in other branches
- 6 lib-theme.php \template_preprocess_filedepot_folder_breadcrumb()
File
- ./
lib-theme.php, line 75 - lib-theme.php Theme support functions for the module
Code
function template_preprocess_filedepot_folder_breadcrumb(&$variables) {
if ($variables['cid'] > 0) {
$foldername = db_query("SELECT name FROM {filedepot_categories} WHERE cid=:cid", array(
':cid' => $variables['cid'],
))
->fetchField();
$variables['catid'] = $variables['cid'];
$variables['padding_left'] = $variables['padding'];
$variables['folder_name'] = filter_xss($foldername);
}
}