aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/ProfileModel.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-01-26 03:05:35 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-01-26 03:05:35 +0000
commitf51c3d89d5118e45914a1de7f6bdb03dd559e32e (patch)
treec76ee67ddb62723503711175e406442b72c55103 /h-source/Application/Models/ProfileModel.php
parent1ddc3583a205edd248a53fcf65e3fbad3664f85f (diff)
added mail notifications for talk messages
Diffstat (limited to 'h-source/Application/Models/ProfileModel.php')
-rw-r--r--h-source/Application/Models/ProfileModel.php8
1 files changed, 7 insertions, 1 deletions
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'