aboutsummaryrefslogtreecommitdiff
path: root/js/lib/pageowner.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/pageowner.js')
-rw-r--r--js/lib/pageowner.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/lib/pageowner.js b/js/lib/pageowner.js
new file mode 100644
index 000000000..c695c41c3
--- /dev/null
+++ b/js/lib/pageowner.js
@@ -0,0 +1,18 @@
+/**
+ * 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 page owner entity or 0 for no owner
+ */
+elgg.get_page_owner_guid = function() {
+ if (elgg.page_owner !== undefined) {
+ return elgg.page_owner.guid;
+ } else {
+ return 0;
+ }
+};
+