update_form_system_modules_alter

Versions
7
update_form_system_modules_alter(&$form, $form_state)

Implements hook_form_FORM_ID_alter().

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

See also

_update_cache_clear()

Code

modules/update/update.module, line 440

<?php
function update_form_system_modules_alter(&$form, $form_state) {
  $form['#submit'][] = 'update_cache_clear_submit';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.