I can't find an option to uninstall the pageflip module. Can anybody help please?

CommentFileSizeAuthor
#9 pageflip.zip33.63 KBvensires
#2 Afbeelding 1.png34.78 KBl.damen

Comments

adamdicarlo’s picture

Priority: Major » Normal

PageFlip itself (beta1 at least) doesn't create any database tables. It just stores some entries in the variables table. If you imported content types from the included text files, you'll have to manually remove those content types from your Drupal installation.

The variables should probably be cleaned up on uninstall, so I'll leave this open.

l.damen’s picture

StatusFileSize
new34.78 KB

I have disabled the modules, the modules weren't in the deinstall section.
I have 3 content types of page book, which didn't removed himself.
I don't have a delete button, so i can't remove them, i would like to clean up the content types, any idea's?

(all the fields that we're related to eachother are deleted)

Anonymous’s picture

same here .. why cant you get rid of the content types with this module?

adamdicarlo’s picture

You can run this query on your site's database to make the content types deletable:

UPDATE node_type SET custom = 1 WHERE type IN ('pageflip_book', 'pageflip_chapter', 'pageflip_page');

(If you don't have direct database access method, I'm pretty sure the devel module gives you a box into which you can type a query.)

Anonymous’s picture

Thanks adamdicarlo :)

Alessandro Pezzato’s picture

thanks adamdicarlo! this helped me :)

adamdicarlo’s picture

Title: Uninstall pageflip » Delete content types upon uninstallation
Assigned: Unassigned » adamdicarlo
Category: support » bug

The module should delete its content types when you choose to uninstall it, so I'm turning this issue into a bug report for that.

adamdicarlo’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
vensires’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new33.63 KB

In file pageflip.module append this function

/*
 * Implementation of hook_disable().
 */
function pageflip_disable() {
  module_load_include('inc', 'pageflip', 'pageflip.import');
  _pageflip_remove_fields();
}

and in pageflip.import.inc append this one

/*
 * Deletes all the fields created by the PageFlip content types
 */
function _pageflip_remove_fields(){
  node_type_delete('pageflip_page');
  node_type_delete('pageflip_chapter');
  node_type_delete('pageflip_book');
  variable_del('pageflip_fields_installed');
}

After appending and saving, upon disabling the module, the node types will be deleted.

PS: I attach the pageflip module (version 6.x-1.0-beta4) with the changes described above.

adamdicarlo’s picture

Status: Patch (to be ported) » Needs work

This code should all be in hook_uninstall() in the pageflip.install file (not hook_disable). So just hook_uninstall() -- there's no need to have a separate function (_pageflip_remove_fields). Could you roll this as an actual patch off of 6.x-1.x and submit that?

vensires’s picture

Yes, it really has to be in the .install file. But since the developer used the _disable hook and a _pageflip_insert_fields function, I just followed his road. If I have enough time, I will make a patch but do not really count on me for this one.

jalane81’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha1

Same issue in Drupal 7. Unable to uninstall the 3 content types mentioned above. Going to try the DB Update Query to see if that takes care of it.

DB Update did not take care of the problem. I still have these 3 rogue content types that I can't delete.

Any ideas on how to get rid of them?

wooody’s picture

yes , Same problem in D7.

adamdicarlo’s picture

Title: Delete content types upon uninstallation » Delete content types and field instances upon uninstallation
Status: Needs work » Patch (to be ported)
adamdicarlo’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.