Commit 42fc7ade authored by drumm's avatar drumm
Browse files

Issue #3144954: Allow separate downloads View per-content-type

parent 571c1f7d
......@@ -1058,7 +1058,7 @@ function project_release_node_delete($node) {
*/
function project_release_download_table($pid, $_clear = FALSE) {
if ($_clear || ($cache = cache_get($pid, 'cache_project_release_download_table')) === FALSE) {
$output = views_embed_view(variable_get('project_release_downloads_view', 'project_release_download_table'), 'recommended', $pid);
$output = views_embed_view(variable_get('project_release_downloads_view_' . node_load($pid)->type, variable_get('project_release_downloads_view', 'project_release_download_table')), 'recommended', $pid);
cache_set($pid, $output, 'cache_project_release_download_table');
return $output;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment