original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Requires the JS libraries for the toggle contact button.
  
  @return void
docstring_tokens: Requires the JS libraries for the toggle contact button .