original_string: public function course_modchooser($modules, $course) {
          if (!$this->page->requires->should_create_one_time_item_now('core_course_modchooser')) {
              return '';
          }
          $modchooser = new \core_course\output\modchooser($course, $modules);
          return $this->render($modchooser);
      }
code: public function course_modchooser($modules, $course) {
          if (!$this->page->requires->should_create_one_time_item_now('core_course_modchooser')) {
              return '';
          }
          $modchooser = new \core_course\output\modchooser($course, $modules);
          return $this->render($modchooser);
      }
code_tokens: public function course_modchooser ( $ modules , $ course ) { if ( ! $ this -> page -> requires -> should_create_one_time_item_now ( 'core_course_modchooser' ) ) { return '' ; } $ modchooser = new \ core_course \ output \ modchooser ( $ course , $ modules ) ; return $ this -> render ( $ modchooser ) ; }
docstring: Build the HTML for the module chooser javascript popup
  
  @param array $modules A set of modules as returned form @see
  get_module_metadata
  @param object $course The course that will be displayed
  @return string The composed HTML for the module
docstring_tokens: Build the HTML for the module chooser javascript popup