function 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 cache of available updates.
See also
Archivo
- drupal-7.x/
modules/ update/ update.module, line 348 - Handles updates of Drupal core and contributed projects.
Código
function update_form_system_modules_alter(&$form, $form_state) {
$form['#submit'][] = 'update_cache_clear_submit';
}