function taxonomy_image_form_entity_view_display_edit_form_alter in Taxonomy Image 8
Implements hook_form_FORM_BASE_ID_alter().
File
- ./
taxonomy_image.module, line 89 - Implements field formatter that displays image on referenced taxonomy terms.
Code
function taxonomy_image_form_entity_view_display_edit_form_alter(&$form, FormStateInterface $form_state) {
foreach (array_keys($form['actions']) as $action) {
if ($action != 'preview' && isset($form['actions'][$action]['#type']) && $form['actions'][$action]['#type'] === 'submit') {
$form['actions'][$action]['#submit'][] = 'taxonomy_image_display_overview_form_submit';
}
}
}