Look in lib/modinfolib.php - class cm_info.
That should answer all your questions a lot quicker than asking in the forums.
Look in lib/modinfolib.php - class cm_info.
That should answer all your questions a lot quicker than asking in the forums.
Hi,
It is still not working.
If I set the onclick in the
cet_cm_info_view function nothing happen.
This is how I set the onclick.
$cm->set_on_click("http://www.google.com");
What m I doing wrong?
Thanks,
Raphael
This is the function declaration:
/**
* Sets value of on-click attribute for JavaScript.
* Note: May not be called from _cm_info_view (only _cm_info_dynamic).
* @param string $onclick New onclick attribute which should be HTML-escaped
* (empty string if none)
* @return void
*/
public function set_on_click($onclick) {
// $this->check_not_view_only();
$this->onclick = $onclick;
}
So I can't use that function in cm_info_view, Is there any other solution?
Raphael