Image nodes created by the upload image module will honor the image content type default comment settings with this patch.

CommentFileSizeAuthor
upload_image.20070113-1.patch712 bytesjoestewart

Comments

drewish’s picture

good idea but shouldn't we use the more core-ish:

  if (module_exist('comment')) {
    $node->comment = variable_get("comment_$node->type", COMMENT_NODE_READ_WRITE);
  }

or, more simply, i suppose:

  if (module_exist('comment')) {
    $node->comment = variable_get(comment_image, COMMENT_NODE_READ_WRITE);
  }
joestewart’s picture

mucho better. Definitely should check for comment module and use constant too.

thanks,

Joe

drewish’s picture

Status: Needs review » Needs work

would you mind rolling a patch for it? i'll get it committed ASAP.

killes@www.drop.org’s picture

Status: Needs work » Fixed

applied to all three versions.

Anonymous’s picture

Status: Fixed » Closed (fixed)