Add unit test for archiveorg plugin
+ coding style
This commit is contained in:
parent
b7b9dbb0d5
commit
9a364c283e
2 changed files with 57 additions and 2 deletions
plugins/archiveorg
|
@ -1,12 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Plugin Archive.org.
|
||||
*
|
||||
* Add an icon in the link list for archive.org.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add archive.org icon to link_plugin when rendering linklist.
|
||||
*
|
||||
* @param $data - linklist data.
|
||||
* @param mixed $data - linklist data.
|
||||
*
|
||||
* @return mixed - linklist data with archive.org plugin.
|
||||
*/
|
||||
function hook_archiveorg_render_linklist($data) {
|
||||
function hook_archiveorg_render_linklist($data)
|
||||
{
|
||||
$archive_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/archiveorg/archiveorg.html');
|
||||
|
||||
foreach ($data['links'] as &$value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue