aboutsummaryrefslogtreecommitdiffstats
path: root/mod/bookmarks.php
blob: 25bf39a7a73600ba74cfe6bd24b3f97d05ecabe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

function bookmarks_content(&$a) {
	if(! local_user()) {
		notice( t('Permission denied.') . EOL);
		return;
	}


	require_once('include/menu.php');

	$o = '<h3>' . t('My Bookmarks') . '</h3>';

	$x = menu_list(local_user(),'',MENU_BOOKMARK);

	if($x) {
		foreach($x as $xx) {
			$y = menu_fetch($xx['menu_name'],local_user(),get_observer_hash());
			$o .= menu_render($y);
		}
	}

	$o .= '<h3>' . t('My Connections Bookmarks') . '</h3>';


	$x = menu_list(local_user(),'',MENU_SYSTEM|MENU_BOOKMARK);

	if($x) {
		foreach($x as $xx) {
			$y = menu_fetch($xx['menu_name'],local_user(),get_observer_hash());
			$o .= menu_render($y);
		}
	}



	return $o;

}