pageowner.js 374 B

12345678910111213141516171819
  1. /**
  2. * Provides page owner and context functions
  3. *
  4. * @todo This is a stub. Page owners can't be fully implemented until
  5. * the 4 types are finished.
  6. */
  7. /**
  8. * @return {number} The GUID of the page owner entity or 0 for no owner
  9. */
  10. elgg.get_page_owner_guid = function() {
  11. if (elgg.page_owner !== undefined) {
  12. return elgg.page_owner.guid;
  13. } else {
  14. return 0;
  15. }
  16. };