aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/pageowner.js14
-rw-r--r--views/default/js/elgg.php1
2 files changed, 15 insertions, 0 deletions
diff --git a/js/lib/pageowner.js b/js/lib/pageowner.js
new file mode 100644
index 000000000..825898416
--- /dev/null
+++ b/js/lib/pageowner.js
@@ -0,0 +1,14 @@
+/**
+ * Provides page owner and context functions
+ *
+ * @todo This is a stub. Page owners can't be fully implemented until
+ * the 4 types are finished.
+ */
+
+/**
+ * @return {number} The GUID of the logged in user
+ */
+elgg.get_page_owner_guid = function() {
+ return elgg.page_owner.guid || 0;
+};
+
diff --git a/views/default/js/elgg.php b/views/default/js/elgg.php
index 6bc048efd..16c8ff20c 100644
--- a/views/default/js/elgg.php
+++ b/views/default/js/elgg.php
@@ -33,6 +33,7 @@ $libs = array(
'languages',
'ajax',
'session',
+ 'pageowner',
//ui
'ui',