Skip to content

Commit 102ed2d

Browse files
authored
Fix documentation about $CFG->hooks_callback_overrides
The given example for $CFG->hooks_callback_overrides did not work on Moodle 5.1
1 parent 1730c16 commit 102ed2d

File tree

1 file changed

+1
-1
lines changed
  • versioned_docs/version-5.1/apis/core/hooks

1 file changed

+1
-1
lines changed

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)