You are here

function amp_form_alter in Accelerated Mobile Pages (AMP) 7

Same name and namespace in other branches
  1. 8.3 amp.module \amp_form_alter()
  2. 8 amp.module \amp_form_alter()
  3. 8.2 amp.module \amp_form_alter()

Implements hook_form_alter().

File

./amp.module, line 561

Code

function amp_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'field_ui_display_overview_form') {
    $form['#submit'][] = 'amp_view_modes_submit';
  }
}