<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.&nbsp;</div>
<div><br>
</div>
<div>I tried:&nbsp;</div>
<div><br>
</div>
<div>function themename_preprocess_page(&amp;$variables) {</div>
<div>&nbsp; &nbsp; &nbsp; $node = &nbsp;$variables['node'];</div>
<div>&nbsp; &nbsp; &nbsp; if($node-&gt;type == 'page') {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (isset($node-&gt;field_change_theme['und']['0']['value'])) {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$variables['theme_hook_suggestions'][] = &nbsp;'page__newtheme.tpl.php';</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
<div>&nbsp; &nbsp; &nbsp;}</div>
<div>}</div>
<div><br>
</div>
<div>A value is being returned but the theme is not changed. &nbsp; 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>