aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/ProfileModel.php
diff options
context:
space:
mode:
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'