--- messaging_sms.module 2008-09-15 11:09:13.000000000 -0400 +++ messaging_smsNew.module 2009-03-19 15:57:45.000000000 -0400 @@ -62,8 +62,11 @@ function messaging_sms_send_user($accoun * This is just a wrapper for sms_send() */ function messaging_sms_send_msg($destination, $message, $params = array()) { - // This function takes an array of destinations so - return sms_send(array($destination), $message['subject'].$message['body']); + // convert the stdObject into an array + $options = get_object_vars($destination); + // remove 'number' from the array of options, since it is passed in elsewhere + unset($options['number']); + return sms_send($destination->number, $message['subject'].$message['body'], $options); } /**