function update_form_system_modules_alter

Same name in other branches
  1. 7.x modules/update/update.module \update_form_system_modules_alter()

Implements hook_form_FORM_ID_alter() for system_modules().

Adds a form submission handler to the system modules form, so that if a site admin saves the form, we invalidate the information of available updates.

See also

_update_cache_clear()

File

core/modules/update/update.module, line 319

Code

function update_form_system_modules_alter(&$form, FormStateInterface $form_state) {
    $form['#submit'][] = 'update_storage_clear_submit';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.