summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/settingsaction.php3
-rw-r--r--lib/util.php6
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/settingsaction.php b/lib/settingsaction.php
index 14e89c2e4..a71c9e9bc 100644
--- a/lib/settingsaction.php
+++ b/lib/settingsaction.php
@@ -95,6 +95,9 @@ class SettingsAction extends Action {
'openidsettings' =>
array('OpenID',
'Add or remove OpenIDs'),
+ 'smssettings' =>
+ array('SMS',
+ 'Updates by SMS'),
'imsettings' =>
array('IM',
'Updates by instant messenger (IM)'));
diff --git a/lib/util.php b/lib/util.php
index 74d5971f7..6f6f1dd24 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1319,4 +1319,10 @@ function common_profile_uri($profile) {
}
# XXX: this is a very bad profile!
return NULL;
+}
+
+function common_canonical_sms($sms) {
+ # strip non-digits
+ preg_replace('/\D/', '', $sms);
+ return $sms;
} \ No newline at end of file