fixed hook bug
This commit is contained in:
parent
b2c971ce2a
commit
afb298ddd9
|
@ -2,7 +2,7 @@
|
||||||
/**
|
/**
|
||||||
* Name: Link
|
* Name: Link
|
||||||
* Description: Using short links on whole hub
|
* Description: Using short links on whole hub
|
||||||
* Version: 0.69
|
* Version: 0.70
|
||||||
* Author: ivan zlax <@zlax@ussr.win>
|
* Author: ivan zlax <@zlax@ussr.win>
|
||||||
* Maintainer: 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 );
|
info( t('Settings updated.') . EOL );
|
||||||
}
|
}
|
||||||
|
|
||||||
function dropdown_link(&$extras) {
|
function dropdown_link($a, &$extras) {
|
||||||
$arr = $extras;
|
$arr = $extras;
|
||||||
$item_id = $extras['item']['item_id'];
|
$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>';
|
$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…
Reference in New Issue