Alter a template whether a user is loged in or not

In My template.php there is these little function

function dtv_preprocess_node(&$vars) {   // Determine if the user is auth'd if (user_is_logged_in()) {   // Add a theme hook suggestion.   $vars['theme_hook_suggestions'][] = 'node__youtube_media__auth';   }  } 

In my themes /templates/node folder are two files called:

node--youtube_mdedia.tpl.php 

and

node--youtube_media__auth.tpl.php 

By now there is no change happening whether a user is logged in or logged out.

Does someone see the error and is able to enlighten me?

Replay

Category: 7 Time: 2016-07-31 Views: 3
Tags: theming

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.126 (s). 12 q(s)