Skip to content

Commit

Permalink
Add Grades/HonorRoll.php|header action hook
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Jan 19, 2024
1 parent a73cff3 commit 791e858
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changes in 11.4.1
- Fix PHP warning use reset() instead of guessing if $errors[1] is set in ErrorMessage.fnc.php & diagnostic.php
- Add arguments to Action tags PHPDoc in Actions.php
- Add `Students/Letters.php|header` action hook in Actions.php & Letters.php
- Add `Grades/HonorRoll.php|header` action hook in Actions.php & HonorRoll.php
- Add `ProgramFunctions/Template.fnc.php|before_get` & `ProgramFunctions/Template.fnc.php|before_save` action hooks in Actions.php & Template.fnc.php

Changes in 11.4
Expand Down
9 changes: 9 additions & 0 deletions functions/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,15 @@
*/
/*'Students/Letters.php|header' => [],
/**
* Honor Roll header
* Add your headers to
* @global $extra['extra_header_left']
*
* @since 11.4.1
*/
/*'Grades/HonorRoll.php|header' => [],
/**
* Template before get
* Filter &$modname var
Expand Down
9 changes: 9 additions & 0 deletions modules/Grades/HonorRoll.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@
$extra['extra_header_left'] .= HonorRollFrame();

$extra['extra_header_left'] .= '</table>';

/**
* Honor Roll header
* Add your headers to
* @global $extra['extra_header_left']
*
* @since 11.4.1
*/
do_action( 'Grades/HonorRoll.php|header' );
}

$extra['new'] = true;
Expand Down

0 comments on commit 791e858

Please sign in to comment.