function sms_incoming in SMS Framework 6.2
Same name and namespace in other branches
- 5 sms.module \sms_incoming()
- 6 sms.module \sms_incoming()
- 7 sms.module \sms_incoming()
Callback for incoming messages. Allows gateways modules to pass messages in a standard format for processing.
Parameters
$number: The sender's mobile number.
$message: The content of the text message.
1 call to sms_incoming()
- sms_devel_virtualgw_receiver in modules/
sms_devel/ sms_devel.virtualgw.inc
File
- ./
sms.module, line 215 - The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.
Code
function sms_incoming($number, $message, $options = array()) {
if (module_exists('rules')) {
rules_invoke_event('sms_incoming', $number, $message);
}
// Execute three phases
module_invoke_all('sms_incoming', 'pre process', $number, $message, $options);
module_invoke_all('sms_incoming', 'process', $number, $message, $options);
module_invoke_all('sms_incoming', 'post process', $number, $message, $options);
}