update_form_alter
modules/update/update.module, строка 314
- Версии
- 6
update_form_alter(&$form, $form_state, $form_id)
Implementation of hook_form_alter()
.
Adds a submit handler to the system modules and themes forms, so that if a site admin saves either form, we invalidate the cache of available updates.
See also
Код
<?php
function update_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'system_modules' || $form_id == 'system_themes_form' ) {
$form['#submit'][] = 'update_invalidate_cache';
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии