function comments_comment_form

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 161

Code

function comments_comment_form() {
  global $current_student_id;

  $term_id = variable_get("advising_term_id");

  fp_set_title("");

  $form = array();

  $form ["type"] = array(
    "type" => "radios",
    "label" => t("Visible to:"),
    "options" => array("public" => t("Anyone (including students)"), "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",
  );

  $form ["submit"] = array(
    "type" => "submit",
    "value" => t("Save"),
  );



  return $form;
}