Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299620

Formatters do not support weights like widgets do

$
0
0

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.


Viewing all articles
Browse latest Browse all 299620

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>