upload_install
modules/upload/upload.install, строка 6
- Версии
- 6
upload_install()
Реализация hook_install()
.
Код
<?php
function upload_install() {
// Create table. The upload table might have been created in the Drupal 5
// to Drupal 6 upgrade, and was migrated from the file_revisions table. So
// in this case, there is no need to create the table, it is already there.
if (!db_table_exists('upload')) {
drupal_install_schema('upload');
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии