function sms_incoming in SMS Framework 6
Same name and namespace in other branches
- 5 sms.module \sms_incoming()
- 6.2 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.
4 calls to sms_incoming()
- sms_clickatell_receive_message in modules/
sms_clickatell/ sms_clickatell.module - Receive an SMS message and pass it into the SMS Framework
- sms_devel_virtualgw_receiver in modules/
sms_devel/ sms_devel.virtualgw.inc - sms_simplegateway_receive_message in modules/
sms_simplegateway/ sms_simplegateway.module - Receive an SMS message and pass it into the SMS Framework
- sms_txtlocal_receive_message in modules/
sms_txtlocal/ sms_txtlocal.module - Receive an SMS message and pass it into the SMS Framework
File
- ./
sms.module, line 92 - 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);
}