Active
Project:
Drupal LMS
Version:
1.2.x-dev
Component:
Courses and lessons
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Nov 2026 at 14:57 UTC
Updated:
23 Nov 2026 at 16:14 UTC
Jump to comment: Most recent
lms_scheduling needs per-course open dates for lessons. Lessons can be shared between courses, so the date belongs on the course–lesson reference, which makes it a lesson reference parameter. Right now only the lesson handler defines lesson parameters, and LmsReferenceParametersForm drops any data keys it doesn't know about when it saves.
The course navigation has no alter point for lesson items, so lms_scheduling can't disable links to lessons that aren't open yet.
LmsReferenceParametersForm after the lesson handler. Values of third-party elements are taken from the form state before the submit alter runs.#display_callback (a callable definition) on parameter elements, for values that aren't scalar.CourseNavBlockBuilder::buildLesson().hook_lms_lesson_parameter_info_alter(), hook_lms_lesson_parameters_form_alter(), hook_lms_lesson_parameters_submit_alter(), hook_lms_course_navigation_lesson_alter()#display_callback on parameter elementsStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
graber commentedComment #4
graber commented