For Drupal 7, if you provide a super advanced formatter for a field type, and your field is named 'advanced_field_formatter', because your module is listed alphabetically first, this means your formatter is listed first as the default formatter in select boxes for the field type. It is interesting that hook_field_widget_info() supports a 'weight' parameter, but not hook_field_formatter_info(). I think it should. It's an easy one-line add for Drupal 7.
↧