Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80691

New hook 'extend_format_module_intro'

XMLWordPrintable

    • MOODLE_401_STABLE
    • mdl-80691-master
    • Hide

      Setup:

      1. Install the helper plugin https://github.com/Fragonite/moodle-local_activityintro
        (git clone https://github.com/Fragonite/moodle-local_activityintro.git local/activityintro)
      2. Navigate to /admin/hooks.php and confirm you see the new extend_format_module_intro hook.
      3. Confirm the hook has a callback entry called for local_activityintro.

      Testing:

      1. Navigate to a course.
      2. Create or edit an activity.
      3. Save your changes, check the activity page, and confirm the description is prepended with the text "Hello from local_activityintro!". If nothing shows up, ensure the description in the activity settings page is not empty.

       

      Show
      Setup: Install the helper plugin https://github.com/Fragonite/moodle-local_activityintro (git clone https://github.com/Fragonite/moodle-local_activityintro.git local/activityintro) Navigate to /admin/hooks.php and confirm you see the new extend_format_module_intro hook. Confirm the hook has a callback entry called for local_activityintro. Testing: Navigate to a course. Create or edit an activity. Save your changes, check the activity page, and confirm the description is prepended with the text "Hello from local_activityintro!". If nothing shows up, ensure the description in the activity settings page is not empty.  

      This hook allows plugins to extend activity descriptions with additional information. This is desirable when you have many activities that share a common component such as linking to site policies and resources or outlining if and how generative AI may be used in assignments.

            Unassigned Unassigned
            avdb Alexander Van der Bellen
            Dmitrii Metelkin Dmitrii Metelkin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.