diff options
Diffstat (limited to 'plugins/qrcode/qrcode.php')
-rw-r--r-- | plugins/qrcode/qrcode.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5db40929..1080c964 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -1,11 +1,15 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | /** | |
3 | // TODO: Can't be tested in localhost | 3 | * Plugin qrcode |
4 | * Add QRCode containing URL for each links. | ||
5 | * Display a QRCode icon in link list. | ||
6 | */ | ||
4 | 7 | ||
5 | /** | 8 | /** |
6 | * Add qrcode icon to link_plugin when rendering linklist. | 9 | * Add qrcode icon to link_plugin when rendering linklist. |
7 | * | 10 | * |
8 | * @param $data - linklist data. | 11 | * @param array $data - linklist data. |
12 | * | ||
9 | * @return mixed - linklist data with qrcode plugin. | 13 | * @return mixed - linklist data with qrcode plugin. |
10 | */ | 14 | */ |
11 | function hook_qrcode_render_linklist($data) | 15 | function hook_qrcode_render_linklist($data) |
@@ -24,6 +28,7 @@ function hook_qrcode_render_linklist($data) | |||
24 | * When linklist is displayed, include qrcode JS files. | 28 | * When linklist is displayed, include qrcode JS files. |
25 | * | 29 | * |
26 | * @param array $data - footer data. | 30 | * @param array $data - footer data. |
31 | * | ||
27 | * @return mixed - footer data with qrcode JS files added. | 32 | * @return mixed - footer data with qrcode JS files added. |
28 | */ | 33 | */ |
29 | function hook_qrcode_render_footer($data) | 34 | function hook_qrcode_render_footer($data) |
@@ -33,4 +38,4 @@ function hook_qrcode_render_footer($data) | |||
33 | } | 38 | } |
34 | 39 | ||
35 | return $data; | 40 | return $data; |
36 | } \ No newline at end of file | 41 | } |