You are here

function _yashare_display_overview_form_submit in Yandex.Share 7.2

Yandex.Share field_ui_display_overview_form submit handler.

1 string reference to '_yashare_display_overview_form_submit'
yashare_form_field_ui_display_overview_form_alter in ./yashare.module
Implements hook_form_FORM_ID_alter().

File

./yashare.module, line 255

Code

function _yashare_display_overview_form_submit($form, &$form_state) {

  // Get current bundle settings.
  $bundle_settings = field_bundle_settings($form['#entity_type'], $form['#bundle']);
  $bundle_settings['extra_fields']['display']['yashare'][$form['#view_mode']]['settings'] = $form_state['formatter_settings']['yashare'];

  // Save updated bundle settings.
  field_bundle_settings($form['#entity_type'], $form['#bundle'], $bundle_settings);
}