function sms_format_number in SMS Framework 7
Same name and namespace in other branches
- 6.2 sms.module \sms_format_number()
- 6 sms.module \sms_format_number()
Formats a number for display using the gateway's formatting functionality.
Parameters
string $number: The number to be formatted.
array $options: An array of options.
Return value
string The formatted number.
File
- ./
sms.module, line 641 - The core of the SMS Framework. Provides gateway management and API for sending and receiving SMS messages.
Code
function sms_format_number(&$number, $options = array()) {
$gateway = sms_default_gateway();
if ($gateway['format number'] && function_exists($gateway['format number'])) {
return $gateway['format number']($number, $options);
}
else {
return $number;
}
}