I'm trying to build a link that opens a popup. The code I am testing is:
$link = new moodle_url ('http://www.google.com');
echo $OUTPUT->action_link($link, 'Ir a Google', new popup_action ('click', $link));
The link works but not in a popup. It opens on the same window that is invoked.
Anybody can tell me if this is the right way? Why not walk?
Thank you very much.