Permalink
Browse files

deprecate(views): elgg_get_view_location is going away in 2.0

It doesn't seem to have a valid use-case and is making some
views work more difficult than it needs to be.

Refs #8527
  • Loading branch information...
ewinslow committed Jun 19, 2015
1 parent ebe75bb commit b4347fb4209dd1a09d5ad0d1ef2d546169aeb5b9
Showing with 17 additions and 14 deletions.
  1. +17 −0 engine/lib/deprecated-1.12.php
  2. +0 −14 engine/lib/views.php
@@ -32,3 +32,20 @@ function set_template_handler($function_name) {
}
return false;
}
/**
* Returns the file location for a view.
*
* @warning This doesn't check if the file exists, but only
* constructs (or extracts) the path and returns it.
*
* @param string $view The view.
* @param string $viewtype The viewtype
*
* @return string
* @deprecated 1.12 This function is going away in 2.0.
*/
function elgg_get_view_location($view, $viewtype = '') {
elgg_deprecated_notice("elgg_get_view_location() is going away in 2.0.", "1.12");
return _elgg_services()->views->getViewLocation($view, $viewtype);
}
View
@@ -269,20 +269,6 @@ function elgg_unregister_external_view($view) {
}
}
/**
* Returns the file location for a view.
*
* @warning This doesn't check if the file exists, but only
* constructs (or extracts) the path and returns it.
*
* @param string $view The view.
* @param string $viewtype The viewtype
*
* @return string
*/
function elgg_get_view_location($view, $viewtype = '') {
return _elgg_services()->views->getViewLocation($view, $viewtype);
}
/**
* Set an alternative base location for a view.

0 comments on commit b4347fb

Please sign in to comment.