Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
/**
|
||||
* List all MeetLet instances in a course.
|
||||
*
|
||||
* @package mod_meetletacbmarketplace
|
||||
* @package mod_meetletacbfree
|
||||
* @copyright 2026 MeetLet
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@@ -27,25 +27,25 @@ require_once('../../config.php');
|
||||
$id = required_param('id', PARAM_INT);
|
||||
$course = $DB->get_record('course', ['id' => $id], '*', MUST_EXIST);
|
||||
require_course_login($course);
|
||||
\mod_meetletacbmarketplace\registration\manager::require_registered();
|
||||
$PAGE->set_url('/mod/meetletacbmarketplace/index.php', ['id' => $id]);
|
||||
$PAGE->set_title(get_string('modulenameplural', 'meetletacbmarketplace'));
|
||||
\mod_meetletacbfree\registration\manager::require_registered();
|
||||
$PAGE->set_url('/mod/meetletacbfree/index.php', ['id' => $id]);
|
||||
$PAGE->set_title(get_string('modulenameplural', 'meetletacbfree'));
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('modulenameplural', 'meetletacbmarketplace'));
|
||||
echo $OUTPUT->heading(get_string('modulenameplural', 'meetletacbfree'));
|
||||
|
||||
if (!$instances = get_all_instances_in_course('meetletacbmarketplace', $course)) {
|
||||
notice(get_string('thereareno', 'moodle', get_string('modulenameplural', 'meetletacbmarketplace')),
|
||||
if (!$instances = get_all_instances_in_course('meetletacbfree', $course)) {
|
||||
notice(get_string('thereareno', 'moodle', get_string('modulenameplural', 'meetletacbfree')),
|
||||
new moodle_url('/course/view.php', ['id' => $course->id]));
|
||||
echo $OUTPUT->footer();
|
||||
die();
|
||||
}
|
||||
|
||||
$table = new html_table();
|
||||
$table->head = [get_string('meetingname', 'meetletacbmarketplace'), get_string('starttime', 'meetletacbmarketplace')];
|
||||
$table->head = [get_string('meetingname', 'meetletacbfree'), get_string('starttime', 'meetletacbfree')];
|
||||
foreach ($instances as $instance) {
|
||||
$url = new moodle_url('/mod/meetletacbmarketplace/view.php', ['id' => $instance->coursemodule]);
|
||||
$url = new moodle_url('/mod/meetletacbfree/view.php', ['id' => $instance->coursemodule]);
|
||||
$table->data[] = [
|
||||
html_writer::link($url, format_string($instance->name)),
|
||||
$instance->starttime ? userdate($instance->starttime) : '-',
|
||||
|
||||
Reference in New Issue
Block a user