function import_user_install in Import 6
Implementation of hook_install().
Remove the variables, nodes and schema corresponding to the module.
File
- examples/
import_user/ import_user.install, line 16 - The install file for the import_user example. This module should not be used on a production installation of Drupal ... it is for illustration purposes only. The install hook removes all traces of what was created by this module and could…
Code
function import_user_install() {
// Create this variable to indicate during cron that our import has not been
// staged.
define('IMPORT_USER_STAGED', FALSE);
// Create tables.
drupal_install_schema('import_user');
_import_user_insert_data();
}