Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/people/config/PhabricatorUserConfigOptions.php b/src/applications/people/config/PhabricatorUserConfigOptions.php
index 3ef736c8ca..66b85a6507 100644
--- a/src/applications/people/config/PhabricatorUserConfigOptions.php
+++ b/src/applications/people/config/PhabricatorUserConfigOptions.php
@@ -1,58 +1,68 @@
<?php
final class PhabricatorUserConfigOptions
extends PhabricatorApplicationConfigOptions {
public function getName() {
return pht('User Profiles');
}
public function getDescription() {
return pht('User profiles configuration.');
}
public function getIcon() {
return 'fa-users';
}
public function getGroup() {
return 'apps';
}
public function getOptions() {
$default = array(
id(new PhabricatorUserRealNameField())->getFieldKey() => true,
id(new PhabricatorUserTitleField())->getFieldKey() => true,
id(new PhabricatorUserIconField())->getFieldKey() => true,
id(new PhabricatorUserSinceField())->getFieldKey() => true,
id(new PhabricatorUserRolesField())->getFieldKey() => true,
id(new PhabricatorUserStatusField())->getFieldKey() => true,
id(new PhabricatorUserBlurbField())->getFieldKey() => true,
);
foreach ($default as $key => $enabled) {
$default[$key] = array(
'disabled' => !$enabled,
);
}
$custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType';
+ $fields_description = $this->deformat(pht(<<<EOTEXT
+List of custom fields for user profiles.
+
+For details on adding new fields, see [[ %s | %s ]] in the
+documentation.
+EOTEXT
+ ,
+ PhabricatorEnv::getDoclink('Configuring Custom Fields'),
+ pht('Configuring Custom Fields')));
+
return array(
$this->newOption('user.fields', $custom_field_type, $default)
->setCustomData(id(new PhabricatorUser())->getCustomFieldBaseClass())
->setDescription(pht('Select and reorder user profile fields.')),
$this->newOption('user.custom-field-definitions', 'wild', array())
- ->setDescription(pht('Add new simple fields to user profiles.')),
+ ->setDescription($fields_description),
$this->newOption('user.require-real-name', 'bool', true)
->setDescription(pht('Always require real name for user profiles.'))
->setBoolOptions(
array(
pht('Make real names required'),
pht('Make real names optional'),
)),
);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Apr 29, 7:38 AM (22 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
108230
Default Alt Text
(2 KB)

Event Timeline