Skip to content

Commit

Permalink
clean up file webfm.install
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchez75 committed Mar 30, 2013
1 parent 3b2f3e3 commit 5157841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
3 changes: 1 addition & 2 deletions webfm.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; $Id:
name = Web File Manager
description = Hierarchical AJAX file system manager
package = WebFM
core = 6.x
core = 7.x
18 changes: 2 additions & 16 deletions webfm.install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Implementation of hook_install().
*/
function webfm_install() {
drupal_install_schema('webfm');
//drupal_install_schema('webfm');
}

/**
Expand Down Expand Up @@ -49,7 +49,7 @@ function webfm_uninstall() {
}
}

$types = node_get_types();
$types = _node_types_build()->types;;
foreach ($types as $type) {
if ($type->type) {
variable_del('webfm_attach_'. $type->type);
Expand Down Expand Up @@ -98,17 +98,3 @@ function webfm_schema() {
);
return $schema;
}

/**
* Add column for comment id in webfm_attach table.
*/
function webfm_update_1() {
$ret = array();
// Add the new column to store a comment id.
db_add_field($ret, 'webfm_attach', 'cid', array('type' => 'int', 'not null' => TRUE, 'default' => '0'));

// Make it a primary key.
db_drop_primary_key($ret, 'webfm_attach');
db_add_primary_key($ret, 'webfm_attach', array('nid', 'cid', 'fid'));
return $ret;
}

0 comments on commit 5157841

Please sign in to comment.