diff options
author | corbosman <cor@xs4all.net> | 2014-05-03 20:38:21 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-05-28 14:12:22 +0200 |
commit | 04089eed1cffb4fb9fe9455a8c56ed6fa2155395 (patch) | |
tree | 159c3a8139aeb40e6e12d6230413b2f46bc599fe /program/steps/settings/func.inc | |
parent | abb405ab5be966d953c956a518338af574eb2b1a (diff) |
add preferences_section_header hook
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r-- | program/steps/settings/func.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 307be8c8e..c5f5ba736 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -1238,6 +1238,13 @@ function rcmail_user_prefs($current = null) $sections[$idx]['blocks'] = $data['blocks']; } + $data = $RCMAIL->plugins->exec_hook('preferences_section_header', + array('section' => $sect['id'], 'header' => '', 'current' => $current)); + + if(!empty($data['header'])) { + $sections[$idx]['header'] = $data['header']; + } + return array($sections, $plugin['cols']); } |