function sms_incoming in SMS Framework 5
Same name and namespace in other branches
- 6.2 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.
File
- ./
sms.module, line 45 - 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()) {
// 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);
}