function field_ui_display_overview_row_region

Returns the region to which a row in the 'Manage display' screen belongs.

This function is used as a #region_callback in field_ui_field_overview_form(), and is called during field_ui_table_pre_render().

1 string reference to 'field_ui_display_overview_row_region'
field_ui_display_overview_form in modules/field_ui/field_ui.admin.inc
Form constructor for the field display settings for a given view mode.

File

modules/field_ui/field_ui.admin.inc, line 117

Code

function field_ui_display_overview_row_region($row) {
    switch ($row['#row_type']) {
        case 'field':
        case 'extra_field':
            return $row['format']['type']['#value'] == 'hidden' ? 'hidden' : 'visible';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.