diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
commit | 5fd0a788d58bdd7d1348e379a6ecb56498f49718 (patch) | |
tree | 03f63d691ad85ef701fa02462a86db483a412e20 /lib | |
parent | f80c8f8ab079e290cc72ffc071d926cef79273cc (diff) |
start sms settings
darcs-hash:20080720193005-84dde-97e098996309550dc98b658923d84620e7715c69.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/settingsaction.php | 3 | ||||
-rw-r--r-- | lib/util.php | 6 |
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 |