function comments_popup_display_all_comments
Search API
7.x comments.module | comments_popup_display_all_comments() |
6.x comments.module | comments_popup_display_all_comments() |
4.x comments.module | comments_popup_display_all_comments() |
5.x comments.module | comments_popup_display_all_comments() |
Displays all comments for a student in a popup window, meant for printing.
File
- modules/
comments/ comments.module, line 312
Code
function comments_popup_display_all_comments() {
global $current_student_id;
$rtn = "";
$delete_link = "";
fp_add_css(fp_get_module_path("comments") . "/css/comments.css");
$access_types = (user_has_permission("view_faculty_comments")) ? array("faculty", "public") : array("public");
$comments = comments_get_comments($current_student_id, FALSE, $access_types);
foreach ($comments as $comment) {
$rtn .= comments_render_comment($comment, $delete_link);
}
watchdog("comments", "popup_display_all_comments $current_student_id", array(), WATCHDOG_DEBUG);
return $rtn;
}