diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 22:54:03 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 22:54:03 +0000 |
commit | 8f5c54b7acfd027bf1f95b70931a3f6ef61c8eb6 (patch) | |
tree | 99cc2d3ce05d93bd189b972752305f705a2ec975 | |
parent | 3ae21bb4b8bb1ea13a06e244e2079ceb75431290 (diff) | |
download | elgg-8f5c54b7acfd027bf1f95b70931a3f6ef61c8eb6.tar.gz elgg-8f5c54b7acfd027bf1f95b70931a3f6ef61c8eb6.tar.bz2 |
Added stub for page owners in elgg.js
git-svn-id: http://code.elgg.org/elgg/trunk@8299 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | js/lib/pageowner.js | 14 | ||||
-rw-r--r-- | views/default/js/elgg.php | 1 |
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', |