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