Display all Drupal messages iin a nice transparent pop-up div or lightbox

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


<?php if ($messages): ?>
   <div id="TB_overlay" class="TB_overlayBG" onclick="tb_remove()"/>
      <div id="TB_window" style="margin-left: -165px; width: 330px; margin-top: -97px; display: block;">
         <div id="TB_ajaxContent" class="TB_modal" style="width: 300px;">
            <?php print $messages; ?>
            <p style="text-align: center;"><input id="Login" type="submit" onclick="tb_remove()" value="  Ok  "/></p>
         </div>
      </div>
   </div>
<?php endif; ?>
                                     

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.