function comments_comment_form
Search API
7.x comments.module | comments_comment_form() |
6.x comments.module | comments_comment_form() |
4.x comments.module | comments_comment_form() |
5.x comments.module | comments_comment_form() |
This is the form to enter a new comment.
File
- modules/
comments/ comments.module, line 197
Code
function comments_comment_form() {
global $current_student_id;
$school_id = db_get_school_id_for_student_id($current_student_id);
$term_id = variable_get_for_school("advising_term_id", '', $school_id);
fp_set_title("");
$form = array();
$form ["type"] = array(
"type" => "radios",
"label" => t("Visible to:"),
"options" => array("public" => t("Anyone (incl student)"), "faculty" => t("Faculty/Staff only")),
"value" => "faculty",
);
$form ["term_id"] = array(
"type" => "hidden",
"value" => $term_id,
);
$form ["current_student_id"] = array(
"type" => "hidden",
"value" => $current_student_id,
);
$form ["comment"] = array(
"type" => "textarea_editor",
);
$form ["submit"] = array(
"type" => "submit",
"value" => t("Save"),
);
return $form;
}