update_uninstall
modules/update/update.install, строка 16
- Версии
- 6
update_uninstall()
Реализация hook_uninstall()
.
Код
<?php
function update_uninstall() {
// Remove cache table.
drupal_uninstall_schema('update');
// Clear any variables that might be in use
$variables = array(
'update_check_frequency',
'update_fetch_url',
'update_last_check',
'update_notification_threshold',
'update_notify_emails',
);
foreach ($variables as $variable) {
variable_del($variable);
}
menu_rebuild();
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии