You are here

function sms_receive_comment_submit in SMS Framework 5

Based on mailhandler_comment_submit() Create the comment.

1 call to sms_receive_comment_submit()
sms_receive_receive in modules/sms_receive/sms_receive.module

File

modules/sms_receive/sms_receive.module, line 300

Code

function sms_receive_comment_submit($node) {
  if (!$node->subject) {
    $node->subject = $node->title;
  }
  if (!$node->comment) {
    $node->comment = $node->body;
  }

  // We want the comment to have the email time, not the current time
  // comment_save gets an array
  $edit = (array) $node;
}