Global variables are not necessary and should be avoided.<div><br></div><div>Does it *visually* appear outside of the enclosing divs, or are you talking strictly about the markup? The former could indicate a mere CSS error.</div>
<div><br></div><div>Consider providing a pastebin of both the preprocess and markup to help diagnose.<br clear="all"><div><br></div><font color="#333333">Carl Wiedemann</font><div><div><font color="#666666">Website design & development consulting | <a href="http://c4rl.ws" target="_blank">c4rl.ws</a></font></div>
<div><font color="#666666"><a href="mailto:carl.wiedemann@gmail.com" target="_blank">carl.wiedemann@gmail.com</a> | skype: c4rlww</font></div></div><br>
<br><br><div class="gmail_quote">On Mon, May 28, 2012 at 9:50 PM, Jeff Greenberg <span dir="ltr"><<a href="mailto:listmail.ayendesigns@gmail.com" target="_blank">listmail.ayendesigns@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In D7, in template.php, I'm hooking preprocess_page and setting a $vars[] variable = theme_button. <div><br></div>
<div>In a block, I have this:</div><div><br></div><div><?php global $signup_button; ?></div><div>
<div><div id="signup"><?php print $signup_button; ?></div></div></div><div><br></div><div>The button appears in the page source outside of those enclosing divs. What am I doing wrong?</div><div>
<br></div>
<br>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br></div>