add display_item hook to 'search|new' message display
This commit is contained in:
parent
bc98930537
commit
c1221cc052
1 changed files with 6 additions and 1 deletions
|
@ -220,7 +220,7 @@ function conversation(&$a, $items, $mode, $update) {
|
||||||
|
|
||||||
$body = prepare_body($item,true);
|
$body = prepare_body($item,true);
|
||||||
|
|
||||||
$treads[$treadsid] .= replace_macros($tpl,array(
|
$tmp_item = replace_macros($tpl,array(
|
||||||
'$id' => $item['item_id'],
|
'$id' => $item['item_id'],
|
||||||
'$linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
|
'$linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
|
||||||
'$profile_url' => $profile_link,
|
'$profile_url' => $profile_link,
|
||||||
|
@ -251,6 +251,11 @@ function conversation(&$a, $items, $mode, $update) {
|
||||||
'$wait' => t('Please wait'),
|
'$wait' => t('Please wait'),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$arr = array('item' => $item, 'output' => $tmp_item);
|
||||||
|
call_hooks('display_item', $arr);
|
||||||
|
|
||||||
|
$treads[$treadsid] .= $arr['output'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue