function forum_comment_update

cis7 forum.module forum_comment_update($comment)
cle7 forum.module forum_comment_update($comment)
elmsmedia7 forum.module forum_comment_update($comment)
icor7 forum.module forum_comment_update($comment)
meedjum_blog7 forum.module forum_comment_update($comment)
mooc7 forum.module forum_comment_update($comment)

Implements hook_comment_update().

The Comment module doesn't call hook_comment_unpublish() when saving individual comments, so we need to check for those here.

File

modules/forum/forum.module, line 502
Provides discussion forums.

Code

function forum_comment_update($comment) {
  // comment_save() calls hook_comment_publish() for all published comments,
  // so we need to handle all other values here.
  if (!$comment->status) {
    _forum_update_forum_index($comment->nid);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.