Drupal Fields Snippets

Custom field formatter settings

Custom field formatter settings

Pepe García
This snippet for Drupal 7 is a follow up from this one: Crear formato personalizado para un campo de tipo fecha In order to implement a settings form to our custom field formatter we only need to use the 'settings' parameter in the field formatter declaration (in hook_field_formatter_info()) and a few hooks.
Read article

Eliminating text resizing

Juan Jesús Trigo
Eliminate the possibility of completely resizing the texts.  Take out the “grippies” of Drupal just like the resizing of the html component.
Read article