You are here

function comment_upload_comment in Comment Upload 6

Same name and namespace in other branches
  1. 5 comment_upload.module \comment_upload_comment()

Implementation of hook_comment().

File

./comment_upload.module, line 250
Provides file attachment functionality for comments.

Code

function comment_upload_comment(&$a1, $op) {
  switch ($op) {
    case 'insert':
    case 'update':
      comment_upload_save($a1);
      break;
    case 'delete':
      comment_upload_comment_delete($a1);
      break;
    case 'view':
      comment_upload_comment_view($a1);
      break;
  }
}