1 | <?php |
||
2 | /** |
||
3 | * Tagcloud plugin |
||
4 | */ |
||
5 | |||
6 | /** |
||
7 | * Tagcloud init |
||
8 | * |
||
9 | * @return void |
||
10 | */ |
||
11 | function tagcloud_init() { |
||
12 | 31 | elgg_extend_view('theme_sandbox/components', 'tagcloud/theme_sandbox/component'); |
|
13 | 31 | elgg_extend_view('elgg.css', 'elgg/tagcloud.css'); |
|
14 | |||
15 | 31 | elgg_register_page_handler('tags', 'tagcloud_tags_page_handler'); |
|
0 ignored issues
–
show
|
|||
16 | 31 | } |
|
17 | |||
18 | /** |
||
19 | * Page hander for sitewide tag cloud |
||
20 | * |
||
21 | * @param array $page Page array |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | function tagcloud_tags_page_handler($page) { |
||
26 | echo elgg_view_resource('tagcloud'); |
||
27 | return true; |
||
28 | } |
||
29 | |||
30 | return function() { |
||
31 | 18 | elgg_register_event_handler('init', 'system', 'tagcloud_init'); |
|
32 | }; |
||
33 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.