aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/demo_plugin/demo_plugin.php
diff options
context:
space:
mode:
authorkalvn <kalvnthereal@gmail.com>2018-02-01 13:16:58 +0100
committerkalvn <kalvnthereal@gmail.com>2018-02-01 13:16:58 +0100
commit50142efd1b4b826f60b1e5673dba5ccbe26e0108 (patch)
tree6cffd9e5e733e10afcfc3010dbeeb4f08bb32f62 /plugins/demo_plugin/demo_plugin.php
parent499bd43c37a6ee3d13dabe8bdd0bb449ae57122a (diff)
downloadShaarli-50142efd1b4b826f60b1e5673dba5ccbe26e0108.tar.gz
Shaarli-50142efd1b4b826f60b1e5673dba5ccbe26e0108.tar.zst
Shaarli-50142efd1b4b826f60b1e5673dba5ccbe26e0108.zip
Executes daily hooks before creating columns.
Diffstat (limited to 'plugins/demo_plugin/demo_plugin.php')
-rw-r--r--plugins/demo_plugin/demo_plugin.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php
index b80a2b6d..f3a63b6a 100644
--- a/plugins/demo_plugin/demo_plugin.php
+++ b/plugins/demo_plugin/demo_plugin.php
@@ -378,17 +378,13 @@ function hook_demo_plugin_render_daily($data)
378 378
379 379
380 // Manipulate columns data 380 // Manipulate columns data
381 foreach ($data['cols'] as &$value) { 381 foreach ($data['linksToDisplay'] as &$value) {
382 foreach ($value as &$value2) { 382 $value['formatedDescription'] .= ' ಠ_ಠ';
383 $value2['formatedDescription'] .= ' ಠ_ಠ';
384 }
385 } 383 }
386 384
387 // Add plugin content at the end of each link 385 // Add plugin content at the end of each link
388 foreach ($data['cols'] as &$value) { 386 foreach ($data['linksToDisplay'] as &$value) {
389 foreach ($value as &$value2) { 387 $value['link_plugin'][] = 'DEMO';
390 $value2['link_plugin'][] = 'DEMO';
391 }
392 } 388 }
393 389
394 return $data; 390 return $data;