You are here

function field_group_formatter_row_update in Field Group 7

Same name and namespace in other branches
  1. 8.3 includes/field_ui.inc \field_group_formatter_row_update()
  2. 8 includes/field_ui.inc \field_group_formatter_row_update()
  3. 7.2 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_overview_form_alter in ./field_group.field_ui.inc
Function to alter the fields overview and display overview screen.

File

./field_group.field_ui.inc, line 459
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);
  }
}