Skip to content

Commit 8572df7

Browse files
committed
Backport fix for $CFG->hooks_callback_overrides example to all versions
Backports the fix from PR #1466 to version-4.4, version-4.5, version-5.0, and the main (current) docs.
1 parent 5628a10 commit 8572df7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/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
```

versioned_docs/version-4.4/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
```

versioned_docs/version-4.5/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
```

versioned_docs/version-5.0/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)