You are here

function apigee_edge_form_field_ui_field_storage_add_form_alter in Apigee Edge 8

Implements hook_form_field_ui_field_storage_add_form_alter().

File

./apigee_edge.module, line 1507
Copyright 2018 Google Inc.

Code

function apigee_edge_form_field_ui_field_storage_add_form_alter(array &$form, FormStateInterface &$form_state) {
  if ($form_state
    ->get('entity_type_id') === 'user') {
    $form['apigee_edge_sync'] = [
      '#type' => 'checkbox',
      '#title' => t('Synchronize to Apigee Edge'),
    ];
    $form['#submit'][] = 'apigee_edge_field_ui_field_storage_add_form_submit';
  }
}