aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/picker.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/friends/picker.php')
-rw-r--r--views/default/friends/picker.php20
1 files changed, 17 insertions, 3 deletions
diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php
index 877a07782..5b7227c99 100644
--- a/views/default/friends/picker.php
+++ b/views/default/friends/picker.php
@@ -24,7 +24,11 @@
$internalname = "friend";
} else {
$internalname = $vars['internalname'];
- }
+ }
+
+ // Are we highlighting default or all?
+ if (empty($vars['highlight'])) $vars['highlight'] = 'default';
+ if ($vars['highlight'] != 'all') $vars['highlight'] = 'default';
// Initialise values
if (!isset($vars['value'])) {
@@ -165,10 +169,20 @@
//echo "<p>" . $user->name . "</p>";
$label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny', 'override' => true));
- $options[$label] = $friend->getGUID();
+ $options[$label] = $friend->getGUID();
+
+ if ($vars['highlight'] == 'all'
+ && !in_array($letter,$activeletters)) {
+ $activeletters[] = $letter;
+ }
+
+
if (in_array($friend->getGUID(),$vars['value'])) {
$checked = "checked = \"checked\"";
- if (!in_array($letter,$activeletters))
+ if (
+ !in_array($letter,$activeletters)
+ && $vars['highlight'] == 'default'
+ )
$activeletters[] = $letter;
} else {
$checked = "";