function import_node_install in Import 6
Implementation of hook_install().
Remove the variables, nodes and schema corresponding to the module.
File
- examples/
import_node/ import_node.install, line 16 - The install file for the import_node 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_node_install() {
// Create this variable to indicate during cron that our import has not been
// staged.
define('IMPORT_NODE_STAGED', FALSE);
// Create tables.
drupal_install_schema('import_node');
_import_node_create_content_type();
_import_node_insert_data();
}