From 4a0f40ed8817308a1be65395b5b53976e433f386 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Jun 2008 11:55:53 +0000 Subject: Introducing elgg_view_title git-svn-id: https://code.elgg.org/elgg/trunk@1096 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'engine/lib') 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. -- cgit v1.2.3