Cool, I'll do that. Maybe create a PR? I think it would be a neat function for the core. One question, do all relation function receive the same variables? Like
PHP Code:
function get_related_list($id, $cur_tab_id, $rel_tab_id, $actions = false)