function amp_form_alter in Accelerated Mobile Pages (AMP) 8
Same name and namespace in other branches
- 8.3 amp.module \amp_form_alter()
- 8.2 amp.module \amp_form_alter()
- 7 amp.module \amp_form_alter()
Implements hook_form_alter().
File
- ./
amp.module, line 392
Code
function amp_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
if ($form_id == 'entity_view_display_edit_form') {
$form['actions']['submit']['#submit'][] = 'amp_view_modes_submit';
}
}