I am developing custom module in D7. And created one custom block. And how can show the conent in the block as pop up box?sample block code is `

$block['content'] = t('Test message');

I want show 'Test message' as in pop up..



There are several modules that you may be able to use or deconstruct to help with your custom module.


There is the Popup message module which provides you the same functionality as you need.

From the module's project page:

Display popup message for users once per browser session.

Based on javascript code: http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.