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

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

    XMLWordPrintable

Details

    • MOODLE_400_STABLE

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frederikmillingpytlick Frederik Milling Pytlick
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: