You are here

function assets_field_ui_display_overview_form_submit in Asset 7

Custom submit handler.

1 string reference to 'assets_field_ui_display_overview_form_submit'
asset_form_field_ui_display_overview_form_alter in ./asset.module
Implements hook_form_FORM_ID_alter().

File

./asset.module, line 1070
Asset module.

Code

function assets_field_ui_display_overview_form_submit($form, &$form_state) {
  $bundle = $form['#bundle'];
  $view_modes_wysiwyg = array_filter($form_state['values']['view_modes_wysiwyg']);
  assets_set_wysiwyg_modes($bundle, $view_modes_wysiwyg);
  $default_view_mode_wysiwyg = $form_state['values']['default_view_mode_wysiwyg'];
  assets_set_default_wysiwyg_mode($bundle, $default_view_mode_wysiwyg);
}