aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 11:55:53 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 11:55:53 +0000
commit4a0f40ed8817308a1be65395b5b53976e433f386 (patch)
tree469c40f77f6f50a85324d54b021e45baf5e6eb75 /engine/lib
parent0cd184937e3539f13250ca183e702302e0899bce (diff)
downloadelgg-4a0f40ed8817308a1be65395b5b53976e433f386.tar.gz
elgg-4a0f40ed8817308a1be65395b5b53976e433f386.tar.bz2
Introducing elgg_view_title
git-svn-id: https://code.elgg.org/elgg/trunk@1096 36083f99-b078-4883-b0ff-0f9b5a30f544
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.