theme_comment_controls

Versions
4.6
theme_comment_controls($threshold = 1, $mode = 3, $order = 1, $comments_per_page = 50)
4.7 – 6
theme_comment_controls($form)

Code

modules/comment.module, line 1506

<?php
function theme_comment_controls($threshold = 1, $mode = 3, $order = 1, $comments_per_page = 50) {
  static $output;

  if (!$output) {
    $output .= theme('comment_mode_form', $mode);
    $output .= theme('comment_order_form', $order);
    $output .= theme('comment_per_page_form', $comments_per_page);
    $output .= theme('comment_threshold', $threshold);

    $output .= ' '. form_submit(t('Save settings'));

    $output = form_item(NULL, $output, t('Select your preferred way to display the comments and click "Save settings" to activate your changes.'));
  }

  return theme('box', t('Comment viewing options'), $output);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.