[themes] Corralling a stray button

Jeff Greenberg jeff at ayendesigns.com
Tue May 29 13:42:36 UTC 2012


Both, and it's because there is no static markup for the region in the page template. All the region markup comes from a render call, so I assume the preprocess hook is firing prior to the render creating the region markup.

Sent from my iPhone

On May 29, 2012, at 8:27 AM, Carl Wiedemann <carl.wiedemann at gmail.com> wrote:

> Global variables are not necessary and should be avoided.
> 
> 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.
> 
> Consider providing a pastebin of both the preprocess and markup to help diagnose.
> 
> Carl Wiedemann
> Website design & development consulting | c4rl.ws
> carl.wiedemann at gmail.com | skype: c4rlww
> 
> 
> 
> On Mon, May 28, 2012 at 9:50 PM, Jeff Greenberg <listmail.ayendesigns at gmail.com> wrote:
> In D7, in template.php, I'm hooking preprocess_page and setting a $vars[] variable = theme_button.  
> 
> In a block, I have this:
> 
> <?php global $signup_button; ?>
> <div id="signup"><?php print $signup_button; ?></div>
> 
> The button appears in the page source outside of those enclosing divs.  What am I doing wrong?
> 
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
> 
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20120529/d4de3f25/attachment.html 


More information about the themes mailing list