return get_string('topic');
}
-/**
- * The GET argument variable that is used to identify the section being
- * viewed by the user (if there is one)
- *
- * @return string
- */
-function callback_topics_request_key() {
- return 'topic';
-}
-
function callback_topics_get_section_name($course, $section) {
// We can't add a node without any text
if (!empty($section->name)) {
return get_string('week');
}
-/**
- * The GET argument variable that is used to identify the section being
- * viewed by the user (if there is one)
- *
- * @return string
- */
-function callback_weeks_request_key() {
- return 'week';
-}
-
/**
* Gets the name for the provided section.
*
$urlfunction = null;
}
- $keyfunction = 'callback_'.$courseformat.'_request_key';
$key = 0;
- if (defined('AJAX_SCRIPT') && AJAX_SCRIPT == '0' && function_exists($keyfunction) && $this->page->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) {
- $key = optional_param($keyfunction(), $key, PARAM_INT);
+ if (defined('AJAX_SCRIPT') && AJAX_SCRIPT == '0' && $this->page->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) {
+ $key = optional_param('section', $key, PARAM_INT);
}
$navigationsections = array();