diff --git a/mod/folder/lib.php b/mod/folder/lib.php index c7598c8fc8e..255c7bb4f82 100644 --- a/mod/folder/lib.php +++ b/mod/folder/lib.php @@ -318,26 +318,6 @@ function folder_pluginfile($course, $cm, $context, $filearea, $args, $forcedownl send_stored_file($file, 86400, 0, true); } -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The folder node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function folder_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * Return a list of page types * @param string $pagetype current page type diff --git a/mod/imscp/lib.php b/mod/imscp/lib.php index d7ae5476597..1177ab9fc24 100644 --- a/mod/imscp/lib.php +++ b/mod/imscp/lib.php @@ -382,26 +382,6 @@ function imscp_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo } } -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The imscp node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function imscp_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * Return a list of page types * @param string $pagetype current page type diff --git a/mod/lesson/lib.php b/mod/lesson/lib.php index 4781fbc4930..b8bbf3d3e3c 100644 --- a/mod/lesson/lib.php +++ b/mod/lesson/lib.php @@ -789,26 +789,6 @@ function lesson_supports($feature) { } } -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The lesson node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function lesson_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * This function extends the settings navigation block for the site. * diff --git a/mod/page/lib.php b/mod/page/lib.php index ef3d84b52f4..fdc3a58a078 100644 --- a/mod/page/lib.php +++ b/mod/page/lib.php @@ -411,27 +411,6 @@ function page_pluginfile($course, $cm, $context, $filearea, $args, $forcedownloa } } - -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The page node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function page_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * Return a list of page types * @param string $pagetype current page type diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 8ff14e6575f..081b6bf1830 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -959,26 +959,6 @@ function scorm_supports($feature) { } } -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The scorm node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function scorm_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * Get the filename for a temp log file * diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 3af83e42cfb..2ce8548c5d0 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -813,26 +813,6 @@ function survey_supports($feature) { } } -/** - * This fucntion extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The quiz node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function survey_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * This function extends the settings navigation block for the site. * diff --git a/mod/url/lib.php b/mod/url/lib.php index 0e40ab18e92..197b75a9cfd 100644 --- a/mod/url/lib.php +++ b/mod/url/lib.php @@ -296,26 +296,6 @@ function url_get_coursemodule_info($coursemodule) { return $info; } -/** - * This function extends the global navigation for the site. - * It is important to note that you should not rely on PAGE objects within this - * body of code as there is no guarantee that during an AJAX request they are - * available - * - * @param navigation_node $navigation The url node within the global navigation - * @param stdClass $course The course object returned from the DB - * @param stdClass $module The module object returned from the DB - * @param stdClass $cm The course module instance returned from the DB - */ -function url_extend_navigation($navigation, $course, $module, $cm) { - /** - * This is currently just a stub so that it can be easily expanded upon. - * When expanding just remove this comment and the line below and then add - * you content. - */ - $navigation->nodetype = navigation_node::NODETYPE_LEAF; -} - /** * Return a list of page types * @param string $pagetype current page type