Skip to content

Commit 5628a10

Browse files
abiasandrewnicols
authored andcommitted
Fix documentation about $CFG->hooks_callback_overrides
The given example for $CFG->hooks_callback_overrides did not work on Moodle 5.1
1 parent 8fb57c4 commit 5628a10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • versioned_docs/version-5.1/apis/core/hooks

versioned_docs/version-5.1/apis/core/hooks/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ callbacks completely:
9595
```php title="/config.php"
9696
$CFG->hooks_callback_overrides = [
9797
\mod_activity\hook\installation_finished::class => [
98-
'test_otherplugin\\callbacks::activity_installation_finished' => ['disabled' => true],
98+
'test_otherplugin\\hook_callbacks::activity_installation_finished' => ['disabled' => true],
9999
],
100100
];
101101
```

0 commit comments

Comments
 (0)