Hi,
I have created a block with link and would like to display a popup with custom php when hovering over this link. Can anybody help me with code? Thank you

Comments

Scheepers de Bruin’s picture

Status: Active » Closed (fixed)
module_load_include('inc', 'popup', 'includes/popup.api');
print popup(
  array(
    'title' => 'My title',
    'link' => 'www.somesite.com',
    'text' => my_php_method_that_may_return_html_or_text(),
  )
);