/** * Print the real name in the user row of the plugin table * * @param $data_row */ function print_real_name($data_row) { $user_id = $data_row['user_id']; $real_name = ''; if (userprojectapi::check_user_id_is_valid($user_id)) { $real_name = user_get_realname($user_id); } userprojectapi::get_cell_highlighting($data_row, 1, 'nowrap'); echo $real_name; echo '</td>' . PHP_EOL; }