When we run into a field formatter that does not have settings associated with it we get the following error.

( ! ) Fatal error: Unsupported operand types in .../simple_field_formatter/simple_field_formatter.module on line 9

Example field formatter without settings http://drupalcode.org/project/date.git/blob/refs/heads/7.x-2.x:/date.fie...

To prevent this type of error we should make sure the settings array exists before attempting to append to it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grndlvl’s picture

Assigned: grndlvl » Unassigned
Status: Active » Needs review
FileSize
685 bytes

Adding patch

  • Commit dd45dec on 7.x-2.x authored by grndlvl, committed by TechNikh:
    Issue #2243487 by grndlvl: Account for missing formatter settings array.
    
TechNikh’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.