summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-03 13:02:48 +0000
committerthomascube <thomas@roundcube.net>2009-07-03 13:02:48 +0000
commit3ca3bd467ab9c5306de4a30c52f737e92eb39a9c (patch)
tree63cf0cab5a06b5d69daaa4b4514a34d54555a966 /program/steps/settings/func.inc
parentfccdf16364bec9a15d9f44e0197f1653b0109c91 (diff)
Add plugin hooks 'smtp_connect' and 'list_identities' (#1485954, #1485958)
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r--program/steps/settings/func.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 5fad317f3..ba98a2cec 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -408,17 +408,19 @@ function rcmail_user_prefs_block($part, $no_override, $attrib)
function rcmail_identities_list($attrib)
{
- global $OUTPUT, $USER;
+ global $OUTPUT, $USER, $RCMAIL;
// add id to message list table if not specified
if (!strlen($attrib['id']))
$attrib['id'] = 'rcmIdentitiesList';
- // define list of cols to be displayed
- $a_show_cols = array('name', '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')));
// create XHTML table
- $out = rcube_table_output($attrib, $USER->list_identities(), $a_show_cols, 'identity_id');
+ $out = rcube_table_output($attrib, $plugin['list'], $plugin['cols'], 'identity_id');
// set client env
$OUTPUT->add_gui_object('identitieslist', $attrib['id']);