From f51c3d89d5118e45914a1de7f6bdb03dd559e32e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 26 Jan 2011 03:05:35 +0000 Subject: added mail notifications for talk messages --- h-source/Application/Models/ProfileModel.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Models/ProfileModel.php') diff --git a/h-source/Application/Models/ProfileModel.php b/h-source/Application/Models/ProfileModel.php index 6c0071f..c8818b4 100644 --- a/h-source/Application/Models/ProfileModel.php +++ b/h-source/Application/Models/ProfileModel.php @@ -35,7 +35,8 @@ class ProfileModel extends Model_Tree { $this->softConditions['update'] = array( "checkLength|90" => "real_name,where_you_are,fav_distro,birth_date,website|the fields 'real name', 'where_you_are', 'favorite distro', 'website' and 'birthdate' don't have to have more than 90 characters", "checkLength|1000" => "projects,description|the fields 'projects' and 'description' don't have to have more than 1000 characters", - "checkIsStrings|no,yes" => "publish_mail" + "checkIsStrings|no,yes" => "publish_mail", + "+checkIsStrings|no,yes" => "send_notification" ); parent::__construct(); @@ -58,6 +59,11 @@ class ProfileModel extends Model_Tree { 'options' => 'no,yes', 'labelString'=> 'Would you like to publish your e-mail address?' ), + 'send_notification' => array( + 'type' => 'Select', + 'options' => 'yes,no', + 'labelString'=> 'Would you like to receive mail notifications?' + ), 'description' => array( 'type' => 'Textarea', 'labelString'=> 'Your description' -- cgit v1.2.3