modified item_photo_menu hook
This commit is contained in:
parent
c5f41d8b6c
commit
6573c94d6c
1 changed files with 4 additions and 2 deletions
|
@ -733,10 +733,12 @@ function item_photo_menu($item){
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$args = array($item, &$menu);
|
$args = array('item' => $item, 'menu' => $menu);
|
||||||
|
|
||||||
call_hooks('item_photo_menu', $args);
|
call_hooks('item_photo_menu', $args);
|
||||||
|
|
||||||
|
$menu = $args['menu'];
|
||||||
|
|
||||||
$o = "";
|
$o = "";
|
||||||
foreach($menu as $k=>$v){
|
foreach($menu as $k=>$v){
|
||||||
if ($v!="") $o .= "<li><a href='$v'>$k</a></li>\n";
|
if ($v!="") $o .= "<li><a href='$v'>$k</a></li>\n";
|
||||||
|
|
Loading…
Reference in a new issue