|
|
@ -752,7 +752,11 @@ class enigma_ui
|
|
|
|
// get user's identities
|
|
|
|
// get user's identities
|
|
|
|
$identities = $this->rc->user->list_identities(null, true);
|
|
|
|
$identities = $this->rc->user->list_identities(null, true);
|
|
|
|
$checkbox = new html_checkbox(array('name' => 'identity[]'));
|
|
|
|
$checkbox = new html_checkbox(array('name' => 'identity[]'));
|
|
|
|
foreach ((array) $identities as $idx => $ident) {
|
|
|
|
|
|
|
|
|
|
|
|
$plugin = $this->rc->plugins->exec_hook('enigma_user_identities', array('identities' => $identities));
|
|
|
|
|
|
|
|
$identities = $plugin['identities'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($identities as $idx => $ident) {
|
|
|
|
$name = empty($ident['name']) ? ($ident['email']) : $ident['ident'];
|
|
|
|
$name = empty($ident['name']) ? ($ident['email']) : $ident['ident'];
|
|
|
|
$attr = array('value' => $idx, 'data-name' => $ident['name'], 'data-email' => $ident['email']);
|
|
|
|
$attr = array('value' => $idx, 'data-name' => $ident['name'], 'data-email' => $ident['email']);
|
|
|
|
$identities[$idx] = html::tag('li', null, html::label(null, $checkbox->show($idx, $attr) . rcube::Q($name)));
|
|
|
|
$identities[$idx] = html::tag('li', null, html::label(null, $checkbox->show($idx, $attr) . rcube::Q($name)));
|
|
|
|