Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd be nice if the default flag weights found in "admin/structure/flags/manage/foo_flag" could be exported using Strongarm/Features. That way administrators don't have to migrate changes from local to DEV -> QA -> Prod.
Technical background
Currently _flag_weights_get_default_weight() gets the default flag weight from the database using:
function _flag_weights_get_default_weight($fid) {
return (int) db_query("SELECT default_weight FROM {flags} WHERE fid = :fid", array(':fid' => $fid))->fetchField();
}
This is used by the flag_weights_form_flag_form_alter() hook_form_FORMID_alter implementation to retrieve the default flag weight in flag_weights.module.