modules/comment/comment.module, строка 1417
- 5 – 6
comment_form_box($edit, $title = NULL)
Тема формы блока комментария.
Параметры
$edit
Структура формы.
$title
Заголовок формы.
Theme the comment form box.
Parameters
$edit
The form structure.
$title
The form title.
- comment_edit in modules/comment/comment.pages.inc
- Конструктор формы; генерирует форму редактирования комментария.
- comment_render in modules/comment/comment.module
- Отображает комментарии.
- comment_reply in modules/comment/comment.pages.inc
- This function is responsible for generating a comment reply form.
There are several cases that have to be handled, including:
replies to comments
replies to nodes
attempts to reply to nodes that can no longer accept comments
respecting access...
Код
<?php
function comment_form_box($edit, $title = NULL) {
return theme('box', $title, drupal_get_form('comment_form', $edit, $title));
}
?>
Войдите или
зарегистрируйтесь, чтобы получить возможность отправлять комментарии