aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/pageowner.js14
1 files changed, 14 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;
+};
+