public static function togglecontact_requirejs() {
        global $PAGE;

        static $done = false;
        if ($done) {
            return;
        }

        $PAGE->requires->js_call_amd('core_message/toggle_contact_button', 'enhance', array('#toggle-contact-button'));
        $done = true;
    }
public static function togglecontact_requirejs() {
        global $PAGE;

        static $done = false;
        if ($done) {
            return;
        }

        $PAGE->requires->js_call_amd('core_message/toggle_contact_button', 'enhance', array('#toggle-contact-button'));
        $done = true;
    }
public static function togglecontact_requirejs ( ) { global $ PAGE ; static $ done = false ; if ( $ done ) { return ; } $ PAGE -> requires -> js_call_amd ( 'core_message/toggle_contact_button' , 'enhance' , array ( '#toggle-contact-button' ) ) ; $ done = true ; }
Requires the JS libraries for the toggle contact button.

@return void
Requires the JS libraries for the toggle contact button .