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'); |
|
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) { |
||
0 ignored issues
–
show
|
|||
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 check looks for parameters that have been defined for a function or method, but which are not used in the method body.