aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-03-21 19:47:08 -0400
committercash <cash.costello@gmail.com>2013-03-21 19:47:08 -0400
commite757ad0cffd35507d6430b8635e2b934db58650f (patch)
tree2ce6d60c4ce719134e674d3bd42ebbd2746ea6f6 /mod/developers/start.php
parentea5cb2677411bf9f0307d650399a848c4c8e208d (diff)
downloadelgg-e757ad0cffd35507d6430b8635e2b934db58650f.tar.gz
elgg-e757ad0cffd35507d6430b8635e2b934db58650f.tar.bz2
Fixes #5268 adds warning for wrapping views
Diffstat (limited to 'mod/developers/start.php')
-rw-r--r--mod/developers/start.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php
index 413a8ed9b..94d0f652c 100644
--- a/mod/developers/start.php
+++ b/mod/developers/start.php
@@ -89,6 +89,15 @@ function developers_clear_strings() {
/**
* Post-process a view to add wrapper comments to it
+ *
+ * 1. Only process views served with the 'default' viewtype.
+ * 2. Does not wrap views that begin with js/ or css/ as they are not HTML.
+ * 3. Does not wrap views that are images (start with icon/). Is this still true?
+ * 4. Does not wrap input and output views (why?).
+ * 5. Does not wrap html head or the primary page shells
+ *
+ * @warning this will break views in the default viewtype that return non-HTML data
+ * that do not match the above restrictions.
*/
function developers_wrap_views($hook, $type, $result, $params) {
if (elgg_get_viewtype() != "default") {