X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.install;h=23d4de39050a1591d8ffffb6b0c4bcfa4cf1aef1;hb=56667175166fd1553aa05e4e2d08e1d77ea3e5ec;hp=e136c59e91669c48462387c1ba37f9872dffa157;hpb=89996d58c6ef47fdba1944a4d4c6fde026f07d63;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.install b/mkdru.install index e136c59..23d4de3 100644 --- a/mkdru.install +++ b/mkdru.install @@ -6,21 +6,21 @@ */ /** -* Implementation of hook_schema(). +* Implements hook_schema(). */ function mkdru_schema() { $schema['mkdru'] = array( - 'description' => t('Stores settings for mkdru nodes.'), + 'description' => 'Stores settings for mkdru nodes.', 'fields' => array( 'nid' => array( - 'description' => t('The primary identifier for a node.'), + 'description' => '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.'), + 'description' => 'The current {node_revisions}.vid version identifier.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, @@ -29,28 +29,28 @@ function mkdru_schema() { 'pz2_path' => array( 'type' => 'text', 'not null' => TRUE, - 'description' => t('Path to Pazpar2 or Service Proxy.') + 'description' => 'Path to Pazpar2 or Service Proxy.', ), 'use_sessions' => array( - 'description' => t('Session handling toggle.'), + 'description' => 'Session handling toggle.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'source_max' => array( - 'description' => t('Number of sources to display'), + 'description' => 'Number of sources to display', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'author_max' => array( - 'description' => t('Number of authors to display'), + 'description' => 'Number of authors to display', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'subject_max' => array( - 'description' => t('Number of subjects to display'), + 'description' => 'Number of subjects to display', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, @@ -58,12 +58,12 @@ function mkdru_schema() { 'sp_user' => array( 'type' => 'text', 'not null' => FALSE, - 'description' => t('Service Proxy username') + 'description' => 'Service Proxy username' ), 'sp_pass' => array( 'type' => 'text', 'not null' => FALSE, - 'description' => t('Service Proxy password') + 'description' => 'Service Proxy password' ), ), 'primary key' => array('nid', 'vid'), @@ -74,28 +74,17 @@ function mkdru_schema() { } /** -* Implementation of hook_install(). +* Implements 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(). +* Implements hook_uninstall(). */ function mkdru_uninstall() { - // Drop table. - drupal_uninstall_schema('mkdru'); // Delete variables variable_del('pz2_js_path'); -} - -function mkdru_update_6100() { - $ret = array(); - db_add_field($ret, 'mkdru', 'sp_user', array('type' => 'varchar', 'length' => 32, 'not null' => FALSE, 'default' => '') ); - db_add_field($ret, 'mkdru', 'sp_pass', array('type' => 'varchar', 'length' => 32, 'not null' => FALSE, 'default' => '') ); - return $ret; -} +} \ No newline at end of file