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

Allow hooks to define tags

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79144-master
    • Hide

      Hard to test when there are no hooks yet.

      Example:

      1. Apply patch from MDL-79013
      2. Modify code of lib/classes/hook/course_delete.php and add the method

         
        public static function get_hook_tags(): array {
            return ['course'];
        }
        

      1. Login as admin and go to Site administration>Development>Hooks overview
      2. Make sure the tags you added display on this page
      Show
      Hard to test when there are no hooks yet. Example: Apply patch from MDL-79013 Modify code of lib/classes/hook/course_delete.php and add the method   public static function get_hook_tags(): array { return ['course']; } Login as admin and go to Site administration>Development>Hooks overview Make sure the tags you added display on this page
    • WP Sprint 2023-I3.1 (Atlantic), WP Sprint 2023-I3.2 (Atlantic)

      This is an implementation of the suggestion I posted on MDL-79077

      • Add 'get_hook_tags()' method to the described_hook interface
      • Display the tags in the hooks overview table.

      In fact most of functionality is already in code. Tags are already displayed.

      Later we can add quick filters by tags

        1. 79144-2.png
          79144-2.png
          127 kB
        2. tagsexample.png
          tagsexample.png
          47 kB

            marina Marina Glancy
            marina Marina Glancy
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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