MDL-40406 libraries: Deprecate build_context_path()

This commit is contained in:
Frederic Massart
2013-07-09 15:43:02 +08:00
parent 84378a57b9
commit 79f6b384d4
4 changed files with 15 additions and 11 deletions
+13
View File
@@ -5013,3 +5013,16 @@ function cleanup_contexts() {
context_helper::cleanup_instances();
return true;
}
/**
* Populate context.path and context.depth where missing.
*
* @see context_helper::build_all_paths()
* @deprecated since 2.2
* @param bool $force force a complete rebuild of the path and depth fields, defaults to false
* @return void
*/
function build_context_path($force = false) {
debugging('build_context_path() is deprecated, please use context_helper::build_all_paths() instead.', DEBUG_DEVELOPER);
context_helper::build_all_paths($force);
}