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

Allow blocks to add custom action menu links on modules and sections

XMLWordPrintable

    • MOODLE_400_STABLE

      Use case:

      We at Praxis would like to move the "backup cart" from the block_sharing_cart plugin into the section/module dropdown.

       

      Solution:

      Adding the abillity to create the functions "block_{blockname}_extend_module_action_menu" and "block_{blockname}_extend_section_action_menu" in lib.php of block plugins. These functions would then be returning an associative array of action_menu_link_secondary instances.

      The functions would then be called when establishing the section and module actions. Only blocks inside the course will get their functions called.

       

      Where the functions would be called:

      Module actions

      Section actions

            Unassigned Unassigned
            frederikmillingpytlick Frederik Milling Pytlick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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