Add parameter to exclude certain entries

This commit is contained in:
Nathan Gray 2012-01-06 17:28:40 +00:00
parent 237e8ce9f9
commit af2e743a83

View File

@ -300,7 +300,7 @@ abstract class bo_merge
* *
* Uses egw_link system to get link titles * Uses egw_link system to get link titles
*/ */
protected function get_links($app, $id, $only_app='') protected function get_links($app, $id, $only_app='', $exclude = array())
{ {
$links = egw_link::get_links($app, $id, $only_app); $links = egw_link::get_links($app, $id, $only_app);
$link_titles = array(); $link_titles = array();
@ -314,6 +314,8 @@ abstract class bo_merge
'id' => $link_info 'id' => $link_info
); );
} }
if($exclude && in_array($link_info['id'], $exclude)) continue;
$title = egw_link::title($link_info['app'], $link_info['id']); $title = egw_link::title($link_info['app'], $link_info['id']);
if(class_exists('stylite_links_stream_wrapper') && $link_info['app'] != egw_link::VFS_APPNAME) if(class_exists('stylite_links_stream_wrapper') && $link_info['app'] != egw_link::VFS_APPNAME)
{ {