| @@ 2051-2061 (lines=11) @@ | ||
| 2048 | Link::link('infolog', $content['link_to']['to_id'], $action, $id); |
|
| 2049 | ||
| 2050 | // calling "infolog_set" hook for first, in case app wants to set some more values |
|
| 2051 | if (!$n && ($set = Api\Hooks::single(array('location'=>'infolog_set','id'=>$action_id),$action))) |
|
| 2052 | { |
|
| 2053 | foreach((array)$set['link_app'] as $i => $l_app) |
|
| 2054 | { |
|
| 2055 | if (($l_id=$set['link_id'][$i])) Link::link('infolog',$content['link_to']['to_id'],$l_app,$l_id); |
|
| 2056 | } |
|
| 2057 | unset($set['link_app']); |
|
| 2058 | unset($set['link_id']); |
|
| 2059 | ||
| 2060 | $content = array_merge($content, $set); |
|
| 2061 | } |
|
| 2062 | } |
|
| 2063 | // fall through |
|
| 2064 | case '': |
|
| @@ 1564-1574 (lines=11) @@ | ||
| 1561 | { |
|
| 1562 | $event['title'] = Link::title($link_app,$link_id); |
|
| 1563 | // ask first linked app via "calendar_set" hook, for further data to set, incl. links |
|
| 1564 | if (($set = Api\Hooks::single($event+array('location'=>'calendar_set','entry_id'=>$link_id),$link_app))) |
|
| 1565 | { |
|
| 1566 | foreach((array)$set['link_app'] as $i => $l_app) |
|
| 1567 | { |
|
| 1568 | if (($l_id=$set['link_id'][$i])) Link::link('calendar',$event['link_to']['to_id'],$l_app,$l_id); |
|
| 1569 | } |
|
| 1570 | unset($set['link_app']); |
|
| 1571 | unset($set['link_id']); |
|
| 1572 | ||
| 1573 | $event = array_merge($event,$set); |
|
| 1574 | } |
|
| 1575 | } |
|
| 1576 | Link::link('calendar',$link_to_id,$link_app,$link_id); |
|
| 1577 | } |
|