You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apis/plugintypes/mod/courseoverview.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,3 +232,19 @@ class overview extends activityoverviewbase {
232
232
// Also, to handle timestamps, use $this->clock->time() instead.
233
233
}
234
234
```
235
+
236
+
## Redirect the index.php page to the course overview
237
+
238
+
The `activityoverviewbase` class provides a static method to redirect the old `mod/PLUGINNAME/index.php` page to the new course overview. This method should be called in the `index.php` file of the activity plugin.
239
+
240
+
This is an example of the `index.php` file of a plugin redirecting to the course overview:
0 commit comments