summaryrefslogtreecommitdiff
path: root/classes/Sms_carrier.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Sms_carrier.php')
-rw-r--r--classes/Sms_carrier.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Sms_carrier.php b/classes/Sms_carrier.php
index 5fb741731..26a88e360 100644
--- a/classes/Sms_carrier.php
+++ b/classes/Sms_carrier.php
@@ -21,4 +21,8 @@ class Sms_carrier extends DB_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function toEmailAddress($sms) {
+ return sprintf($this->email_pattern, $sms);
+ }
}