From 04089eed1cffb4fb9fe9455a8c56ed6fa2155395 Mon Sep 17 00:00:00 2001 From: corbosman Date: Sat, 3 May 2014 20:38:21 +0200 Subject: add preferences_section_header hook --- program/steps/settings/func.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'program/steps/settings/func.inc') 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']); } -- cgit v1.2.3