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);
    }
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);
    }
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 ) ; }
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
Build the HTML for the module chooser javascript popup