Skip to content

Commit

Permalink
Fix issue with hook/callback
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentdavid committed Dec 7, 2024
1 parent a97b1d0 commit c9c18ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions classes/hook_callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace tool_gdpr_plus;

use core\hook\output\before_footer_html_generation;
use core\hook\output\before_standard_footer_html_generation;
use dml_read_exception;
use html_writer;
use moodle_url;
Expand All @@ -31,12 +31,12 @@
class hook_callbacks {
/**
* Load policy message for guests.
* @param before_footer_html_generation $hook
* @param before_standard_footer_html_generation $hook
*
* @return string The HTML code to insert before the head.
*
*/
public static function before_footer_html_generation(before_footer_html_generation $hook): void {
public static function before_standard_footer_html_generation(before_standard_footer_html_generation $hook): void {
global $CFG, $PAGE;

$message = null;
Expand Down
4 changes: 2 additions & 2 deletions db/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

$callbacks = [
[
'hook' => \core\hook\output\before_footer_html_generation::class,
'callback' => \tool_gdpr_plus\hook_callbacks::class . '::before_footer_html_generation',
'hook' => \core\hook\output\before_standard_footer_html_generation::class,
'callback' => \tool_gdpr_plus\hook_callbacks::class . '::before_standard_footer_html_generation',
'priority' => 0,
],
];
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'tool_gdpr_plus';
$plugin->version = 2021102603;
$plugin->release = 'v0.1';
$plugin->version = 2024120700;
$plugin->release = 'v1.0';
$plugin->requires = 2019111800;
$plugin->maturity = MATURITY_STABLE;

0 comments on commit c9c18ce

Please sign in to comment.