Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Motivation
Not everyone using the Learn distribution will want to use the same set of lessons, but as the distribution is set up now you will always import a standard set of lessons.
Proposed resolution
Have an option during the installation process where you select whether you want to set up a standard set of Drupal lessons or not.
Remaining tasks
- DONE Find the modules that are relevant for importing lesson content. (Answer: learn_lesson_content. See comment #2)
- Do not make learn_lesson_content required. Remove this line from learn.info:
dependencies[] = learn_lesson_content
- Add an extra screen in the installation process, where you select whether you want to import the lessons or not. (This goes in learn.install)
- (Maybe) Repackage Lesson Content as an app or a collection of apps following the apps specification.
- (Maybe) Serve lesson(s) app(s) from an app server on learndrupal.org.
Comments
Comment #1
dgoutam CreditAttribution: dgoutam commentedCan we think of lessons as an app (app module) so that user could install it post installation just like demo content or so.
Comment #2
bryanhirsch CreditAttribution: bryanhirsch commented@dgoutam @Itangalo, Making content optional on install--with a checkbox or prompt of some sort during installation--and/or re-packaging this functionality as an app sounds great. It shouldn't be much work to do either. All the content that ships with Learn Drupal by default lives in a feature module called learn_lesson_content. That is profiles/learn/features/learn_lesson_content.
I'll update the task list to give clearer guidance on what would need to be included for a patch.
Comment #3
BrockBoland CreditAttribution: BrockBoland commentedComment #3.0
BrockBoland CreditAttribution: BrockBoland commentedUpdated issue summary.