view.php 850 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. if (!elgg_is_logged_in()) {
  3. return;
  4. }
  5. $current_user = elgg_get_logged_in_user_entity();
  6. $fav_options = array('type' => 'object',
  7. 'annotation_name' => 'favourite',
  8. 'order_by_annotation' => "n_table.time_created desc",
  9. 'full_view' => false,
  10. 'view_type_toggle' => FALSE,
  11. 'annotation_owner_guid' => $current_user->guid
  12. );
  13. /*
  14. $fav_options = array(
  15. 'type' => 'object',
  16. 'annotation_names' => array('favourite'),
  17. //'relationship_guid' => elgg_get_logged_in_user_guid(),
  18. //'relationship' => 'flags_content',
  19. 'annotation_owner_guids' => array($user->guid);
  20. 'full_view' => FALSE,
  21. 'view_type_toggle' => FALSE,
  22. );*/
  23. //echo elgg_list_entities_from_relationship($fav_options);
  24. echo elgg_list_entities_from_annotations($fav_options);