theme_comment_controls

Definition

theme_comment_controls($form)
modules/comment/comment.module, line 1636

Description

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

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.

Code

<?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);
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.