function _get_coursemodule_info is being cachced

Re: תשובה ל: Re: תשובה ל: function _get_coursemodule_info is being cachced

by Davo Smith -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Look in lib/modinfolib.php - class cm_info.

That should answer all your questions a lot quicker than asking in the forums.

In reply to Davo Smith

תשובה ל: Re: תשובה ל: Re: תשובה ל: function _get_coursemodule_info is being cachced

by Raphael Goldman -

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


In reply to Raphael Goldman

תשובה ל: Re: תשובה ל: Re: תשובה ל: function _get_coursemodule_info is being cachced

by Raphael Goldman -

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