t('Stores settings for mkdru nodes.'), 'fields' => array ( 'nid' => array( 'description' => t('The primary identifier for a node.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0 ), 'vid' => array( 'description' => t('The current {node_revisions}.vid version identifier.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0 ), 'pz2_path' => array( 'type' => 'text', 'not null' => TRUE, 'description' => t('Path to Pazpar2 or Service Proxy.') ), 'use_sessions' => array( 'description' => t('Session handling toggle.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'source_max' => array( 'description' => t('Number of sources to display'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'author_max' => array( 'description' => t('Number of authors to display'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'subject_max' => array( 'description' => t('Number of subjects to display'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), ), 'primary key' => array('nid', 'vid'), 'unique keys' => array('vid' => array('vid')), 'indexes' => array('nid' => array('nid')), ); return $schema; } /** * Implementation of hook_install(). */ function mkdru_install() { // Disable comments by default variable_set('comment_mkdru', COMMENT_NODE_DISABLED); // Create table. drupal_install_schema('mkdru'); } /** * Implementation of hook_uninstall(). */ function mkdru_uninstall() { // Drop table. drupal_uninstall_schema('mkdru'); // Delete variables variable_del('pz2_js_path'); } ?>