aboutsummaryrefslogtreecommitdiffstats
path: root/include/selectors.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-12 21:08:29 +0000
committerMario <mario@mariovavti.com>2022-01-12 21:08:29 +0000
commitabe3039926dd388108e620148868880cb1da3fa3 (patch)
tree5df8a062da5e7829d23045fc7e197392a9655baa /include/selectors.php
parent82a1117e917a0c97de961f31f4d4aea7affa069f (diff)
downloadvolse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.gz
volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.bz2
volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.zip
ux improvements
Diffstat (limited to 'include/selectors.php')
-rw-r--r--include/selectors.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/selectors.php b/include/selectors.php
index d58ef1085..57a9db480 100644
--- a/include/selectors.php
+++ b/include/selectors.php
@@ -1,7 +1,7 @@
<?php /** @file */
-function contact_profile_assign($current) {
+function contact_profile_assign($current, $label = '') {
$r = q("SELECT profile_guid, profile_name FROM profile WHERE uid = %d",
intval($_SESSION['uid'])
@@ -13,9 +13,13 @@ function contact_profile_assign($current) {
}
}
+ if (!$label) {
+ $label = t('Select a profile to assign to this contact');
+ }
+
$select = [
'profile_assign',
- t('Select a profile to assign to this contact'),
+ $label,
$current,
'',
$options