function comment_count_unpublished
comment_count_unpublished()
Returns a menu title which includes the number of unapproved comments.
File
- modules/comment/comment.module, line 311
- Enables users to comment on published content.
Code
function comment_count_unpublished() { $count = db_query('SELECT COUNT(cid) FROM {comment} WHERE status = :status', array( ':status' => COMMENT_NOT_PUBLISHED, ))->fetchField(); return t('Unapproved comments (@count)', array('@count' => $count)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_count_unpublished/7.x