comparison modules/comment/comment.module @ 19:3edae6ecd6c6 6.9

Drupal 6.9
author Franck Deroche <franck@defr.org>
date Thu, 15 Jan 2009 10:15:56 +0100
parents 589fb7c02327
children
comparison
equal deleted inserted replaced
18:f5131a9cd9e5 19:3edae6ecd6c6
1 <?php 1 <?php
2 // $Id: comment.module,v 1.617.2.3 2008/09/17 06:22:38 goba Exp $ 2 // $Id: comment.module,v 1.617.2.4 2009/01/06 17:34:54 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Enables users to comment on published content. 6 * Enables users to comment on published content.
7 * 7 *
1598 * Comment order mode. 1598 * Comment order mode.
1599 * @param $comments_per_page 1599 * @param $comments_per_page
1600 * Comments per page. 1600 * Comments per page.
1601 * @ingroup forms 1601 * @ingroup forms
1602 */ 1602 */
1603 function comment_controls($mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMMENT_ORDER_NEWEST_FIRST, $comments_per_page = 50) { 1603 function comment_controls(&$form_state, $mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMMENT_ORDER_NEWEST_FIRST, $comments_per_page = 50) {
1604 $form['mode'] = array('#type' => 'select', 1604 $form['mode'] = array('#type' => 'select',
1605 '#default_value' => $mode, 1605 '#default_value' => $mode,
1606 '#options' => _comment_get_modes(), 1606 '#options' => _comment_get_modes(),
1607 '#weight' => 1, 1607 '#weight' => 1,
1608 ); 1608 );