<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>In drupal 7, I'd like to be able to change the page template if a value is returned in a CKK field. </div>
<div><br>
</div>
<div>I tried: </div>
<div><br>
</div>
<div>function themename_preprocess_page(&$variables) {</div>
<div> $node = $variables['node'];</div>
<div> if($node->type == 'page') {</div>
<div> if (isset($node->field_change_theme['und']['0']['value'])) {</div>
<div> $variables['theme_hook_suggestions'][] = 'page__newtheme.tpl.php';</div>
<div> }</div>
<div> }</div>
<div>}</div>
<div><br>
</div>
<div>A value is being returned but the theme is not changed. Please help.</div>
<div><br>
</div>
<div>Thanks,<br>
Tracey</div>
<div><br>
<div style="font-size: 13px; "><font size="2" style="font-family: Arial; "><span style="font-size:10pt">--------------------</span></font><br>
<font size="2" style="font-family: Arial; "><span style="font-size:10pt">Tracey Hummel</span></font><br>
<font size="2" style="font-family: Arial; "><span style="font-size:10pt">Web Application Developer</span></font><br>
<font size="2" style="font-family: Arial; "><span style="font-size:10pt">SBS Technical Services</span></font><br>
<font size="2" style="font-family: Arial; "><span style="font-size:10pt">University Services Building</span></font><font face="Arial"><br>
</font><font size="2" style="font-family: Arial; "><span style="font-size:10pt">tracey@arizona.edu</span></font><font size="2" style="font-family: Arial; "><span style="font-size:10pt"><br>
</span></font></div>
</div>
</div>
</body>
</html>