theme_comment_threshold

Versions
4.6
theme_comment_threshold($threshold)

Code

modules/comment.module, line 1491

<?php
function theme_comment_threshold($threshold) {
  $result = db_query('SELECT fid, filter FROM {moderation_filters} ');
  $options .= ' <option value="0">'. t('-- threshold --') .'</option>';
  while ($filter = db_fetch_object($result)) {
    $filters .= " <option value=\"$filter->fid\"". ($threshold == $filter->fid ? ' selected="selected"' : '') .'>'. $filter->filter .'</option>';
  }

  if ($filters) {
    return "<select name=\"threshold\">$filters</select>\n";
  }
  else {
    return "<input type=\"hidden\" name=\"threshold\" value=\"$threshold\" />\n";
  }
}
?>
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.