function sms_devel_virtualgw_log_insert in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_devel/sms_devel.virtualgw.inc \sms_devel_virtualgw_log_insert()
- 7 modules/sms_devel/sms_devel.virtualgw.inc \sms_devel_virtualgw_log_insert()
2 calls to sms_devel_virtualgw_log_insert()
- sms_devel_virtualgw_receiver in modules/
sms_devel/ sms_devel.virtualgw.inc - sms_devel_virtualgw_send in modules/
sms_devel/ sms_devel.virtualgw.inc - Callback for sending messages.
File
- modules/
sms_devel/ sms_devel.virtualgw.inc, line 82 - Virtual Gateway for the sms_devel module of the SMS Framework.
Code
function sms_devel_virtualgw_log_insert($type, $number = '', $message = '', $options = array()) {
$options_z = serialize($options);
$result = db_query("INSERT INTO {sms_devel_virtualgw} (created, type, number,\n message, options) VALUES (%d, %d, '%s', '%s', '%s')", time(), $type, $number, $message, $options_z);
return $result;
}