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)

Theme comment controls box where the user can change the default display mode and display order of comments.

Parameters

$form The form structure.

Related topics

Code

modules/comment/comment.module, line 1642

<?php
function theme_comment_controls($form) {
  $output = '<div class="container-inline">';
  $output .=  drupal_render($form);
  $output .= '</div>';
  $output .= '<div class="description">'. t('Select your preferred way to display the comments and click "Save settings" to activate your changes.') .'</div>';
  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.