move header block inside loop

pull/270/head
corbosman 10 years ago
parent 3d6ce95009
commit d9c22ab66d

@ -1261,14 +1261,15 @@ function rcmail_user_prefs($current = null)
unset($sections[$idx]);
else
$sections[$idx]['blocks'] = $data['blocks'];
}
// 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'];
}
}
return array($sections, $plugin['cols']);
}

Loading…
Cancel
Save