diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-04-03 11:42:49 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-04-03 11:42:49 +0200 |
commit | 64d79b82aa51537c146dcbff5dd22192c9ec281f (patch) | |
tree | 843b225505e0a200d4be3155e2f41a43a5200b84 | |
parent | 3d6ce950097e591017514fb9400839c89fd589d9 (diff) | |
parent | d9c22ab66d0580cf03523c989d75e43850d0555a (diff) |
Merge pull request #270 from corbosman/master
move header block inside loop
-rw-r--r-- | program/steps/settings/func.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 087b23610..46aed3019 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -1261,13 +1261,14 @@ function rcmail_user_prefs($current = null) unset($sections[$idx]); else $sections[$idx]['blocks'] = $data['blocks']; - } - $data = $RCMAIL->plugins->exec_hook('preferences_section_header', - array('section' => $sect['id'], 'header' => '', 'current' => $current)); + // allow plugins to add a header to each section + $data = $RCMAIL->plugins->exec_hook('preferences_section_header', + array('section' => $sect['id'], 'header' => '', 'current' => $current)); - if(!empty($data['header'])) { - $sections[$idx]['header'] = $data['header']; + if(!empty($data['header'])) { + $sections[$idx]['header'] = $data['header']; + } } return array($sections, $plugin['cols']); |