| | |
| | | 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']); |