5 * Install, update and uninstall functions.
9 * Implementation of hook_schema().
11 function mkdru_schema() {
12 $schema['mkdru'] = array(
13 'description' => t('Stores settings for mkdru nodes.'),
16 'description' => t('The primary identifier for a node.'),
23 'description' => t('The current {node_revisions}.vid version identifier.'),
32 'description' => t('Path to Pazpar2 or Service Proxy.')
34 'use_sessions' => array(
35 'description' => t('Session handling toggle.'),
40 'source_max' => array(
41 'description' => t('Number of sources to display'),
46 'author_max' => array(
47 'description' => t('Number of authors to display'),
52 'subject_max' => array(
53 'description' => t('Number of subjects to display'),
59 'primary key' => array('nid', 'vid'),
60 'unique keys' => array('vid' => array('vid')),
61 'indexes' => array('nid' => array('nid')),
67 * Implementation of hook_install().
69 function mkdru_install() {
70 // Disable comments by default
71 variable_set('comment_mkdru', COMMENT_NODE_DISABLED);
73 drupal_install_schema('mkdru');
77 * Implementation of hook_uninstall().
79 function mkdru_uninstall() {
81 drupal_uninstall_schema('mkdru');
83 variable_del('pz2_js_path');