From 5fd0a788d58bdd7d1348e379a6ecb56498f49718 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 20 Jul 2008 15:30:05 -0400 Subject: start sms settings darcs-hash:20080720193005-84dde-97e098996309550dc98b658923d84620e7715c69.gz --- lib/settingsaction.php | 3 +++ lib/util.php | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3-54-g00ecf