Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FlightPath 7.x Changelog
========================

2026-11-04
Revised the watchdog screen (admin/config/watchdog) to use the FAPI as well as
new filters for searching by date range.


2026-10-30
Added global setting for Alerts to either enable or disable sending emails on new
Expand Down
16 changes: 15 additions & 1 deletion includes/render.inc
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,20 @@ function fp_get_form($form_id, $params = array()) {
call_user_func_array($module . '_form_alter', array(&$form, $form_id));
}

// Form properties (that begin with #) are metadata, not renderable elements, and should not be
// passed through the element weight sorter.
$form_properties = array();
$form_elements = array();
foreach ($form as $key => $element) {
if (is_string($key) && substr($key, 0, 1) === '#') {
$form_properties[$key] = $element;
}
else {
$form_elements[$key] = $element;
}
}
$form = $form_elements;

// Okay, now the fun part. Re-order the elements by weight. Lighter weights
// should float to the top. Elements w/o a weight listed are assumed to have a weight of 0.
// Unfortunately we cannot use uasort, as it re-orders our indexes when weights are identical.
Expand Down Expand Up @@ -269,7 +283,7 @@ function fp_get_form($form_id, $params = array()) {

// Okay, we should now be good to go!

return $new_form;
return $form_properties + $new_form;

}

Expand Down
Loading
Loading