You are here

function feeds_form_field_ui_field_overview_form_alter in Feeds 8.3

Implements hook_form_FORM_ID_alter() for field_ui_field_overview_form().

Removes our field from the Field UI overview form.

@todo implement the feeds_item field as base field instead? See https://www.drupal.org/project/feeds/issues/2799225

File

./feeds.module, line 195
Feeds hook implementations.

Code

function feeds_form_field_ui_field_overview_form_alter(array &$form, FormStateInterface $form_state) {

  // @codingStandardsIgnoreStart
  // if (in_array('feeds_item', $form['#fields'])) {
  //   unset($form['#fields'][array_search('feeds_item', $form['#fields'])]);
  //   unset($form['fields']['feeds_item']);
  //   $rows_order = $form['fields']['#regions']['content']['rows_order'];
  //   $key = array_search('feeds_item', $rows_order);
  //   unset($form['fields']['#regions']['content']['rows_order'][$key]);
  // }
  // @codingStandardsIgnoreEnd
}