Skip to content

Commit

Permalink
move the suggestion into the if branch to enable normal pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
enko committed Nov 13, 2014
1 parent 7a70909 commit a0145ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podcast.module
Expand Up @@ -116,8 +116,8 @@ function podcast_theme($existing, $type, $theme, $path) {
}

function podcast_preprocess_node(&$vars) {
$vars['theme_hook_suggestions'][] = 'node__episode';
if ($vars['type'] == 'episode') {
$vars['theme_hook_suggestions'][] = 'node__episode';
$node = $vars['node'];
$show = node_load($node->field__episode__show['und'][0]['nid']);
$file = file_load($node->field_episode_audio['und'][0]['fid']);
Expand Down

0 comments on commit a0145ef

Please sign in to comment.