Browse Source

fixed hook bug

master
ivan 1 year ago
parent
commit
afb298ddd9
  1. 4
      link/link.php

4
link/link.php

@ -2,7 +2,7 @@
/**
* Name: Link
* Description: Using short links on whole hub
* Version: 0.69
* Version: 0.70
* Author: ivan zlax <@zlax@ussr.win>
* Maintainer: ivan zlax <@zlax@ussr.win>
*/
@ -50,7 +50,7 @@ function link_plugin_admin_post(&$a) {
info( t('Settings updated.') . EOL );
}
function dropdown_link(&$extras) {
function dropdown_link($a, &$extras) {
$arr = $extras;
$item_id = $extras['item']['item_id'];
$arr['dropdown_extras'] .= '<a class="dropdown-item" href="'.z_root().'/link/'.$item_id.'" title="'.t('Link on Hub').'" class="u-url"><i class="generic-icons-nav fa fa-fw fa-link"></i>'.t('Link on Hub').'</a>';

Loading…
Cancel
Save