You are here

function field_group_formatter_row_update in Field Group 8.3

Same name and namespace in other branches
  1. 8 includes/field_ui.inc \field_group_formatter_row_update()
  2. 7.2 field_group.field_ui.inc \field_group_formatter_row_update()
  3. 7 field_group.field_ui.inc \field_group_formatter_row_update()

Update the row so that the group variables are updated. The rendering of the elements needs the updated defaults.

Parameters

Object $group:

array $settings:

1 call to field_group_formatter_row_update()
field_group_field_ui_display_form_alter in includes/field_ui.inc
Function to alter the display overview screens.

File

includes/field_ui.inc, line 534
Field_group.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).

Code

function field_group_formatter_row_update(&$group, $settings) {

  // If the row has changed formatter type, update the group object.
  if (!empty($settings['format']['type']) && $settings['format']['type'] != $group->format_type) {
    $group->format_type = $settings['format']['type'];
    field_group_formatter_settings_update($group, $settings);
  }
}