summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-09 11:17:45 +0000
committeralecpl <alec@alec.pl>2010-06-09 11:17:45 +0000
commit54759ce120c30882521946694b83646e9695395a (patch)
tree33a465485b69916109e2b6a9deb8985befcf6b90 /program/steps
parentff38d0e55b5a36ae28a828c9f8d21ef6a553beae (diff)
- some improvements + added splitter in Identities
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/func.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 1516b9810..f22cad8ef 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -69,14 +69,20 @@ function rcmail_identities_list($attrib)
if (!strlen($attrib['id']))
$attrib['id'] = 'rcmIdentitiesList';
+ // get identities list and define 'mail' column
+ $list = $USER->list_identities();
+ foreach ($list as $idx => $row)
+ $list[$idx]['mail'] = trim($row['name'] . ' <' . $row['email'] .'>');
+
// get all identites from DB and define list of cols to be displayed
$plugin = $RCMAIL->plugins->exec_hook('list_identities', array(
- 'list' => $USER->list_identities(),
- 'cols' => array('name', 'email')));
+ 'list' => $list,
+ 'cols' => array('mail')));
- // create XHTML table
+ // @TODO: use <UL> instead of <TABLE> for identities list
+ // create XHTML table
$out = rcube_table_output($attrib, $plugin['list'], $plugin['cols'], 'identity_id');
-
+
// set client env
$OUTPUT->add_gui_object('identitieslist', $attrib['id']);