aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index b71c19f0a..f99480f10 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -447,7 +447,18 @@
}
}
-
+
+ /**
+ * Returns a view for the page title
+ *
+ * @param string $title The page title
+ * @return string The HTML (etc)
+ */
+ function elgg_view_title($title) {
+
+ return elgg_view('page_elements/title', array('title' => $title));
+
+ }
/**
* Sets an alternative function to handle templates, which will be passed to by elgg_view.