function comment_upload_nodeapi in Comment Upload 6
Same name and namespace in other branches
- 5 comment_upload.module \comment_upload_nodeapi()
File
- ./
comment_upload.module, line 237 - Provides file attachment functionality for comments.
Code
function comment_upload_nodeapi(&$node, $op, $arg = 0) {
if ($op == 'delete') {
$result = comment_upload_fetch_all($node->nid, TRUE);
while ($row = db_fetch_array($result)) {
// comment_upload_delete_file just needs a filepath and a fid.
comment_upload_delete_file($row);
}
}
}