Closed (fixed)
Project:
Panopoly FAQ
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 Oct 2013 at 17:05 UTC
Updated:
4 Jan 2014 at 22:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrfelton commentedPatch attached. Same approach taken as per #2105503: Implement demo content via Migrate instead of defaultcontent
Comment #2
mrfelton commentedFix for code style issues
Comment #3
markwk commentedThanks, mrfelton. I'll check on this patch soon. I appreciate your help.
Comment #4
mrfelton commentedComment #5
mrfelton commentedUpdated patch includes binary files properly, and an update hook for users upgrading from an older version which reimports the updated demo content.
Comment #6
dsnopekAre we working on the 1.x or 2.x version of Panopoly FAQ? 2.x is the only one with a download on the Drupal.org page.
Comment #7
dsnopekOk, so to answer my own question based on your patch - we're working on 1.x! So, I guess this will need to be ported to 2.x later.
I tested and enabling it on a new site works great! However, the upgrade doesn't work because the module is renamed from "panopoly_faq_democontent" to "panopoly_faq_demo" and so the
panopoly_faq_demo_update_7001()function will never run.We either need to:
hook_installI think that #3 is probably the cleanest solution! We can set
hidden = TRUEin the .info file so that users won't even know the stub module is there.What do you think?
Comment #8
mrfelton commentedUpdated the enable/disable/update hooks to use new helper function from panopoly_core to handle creating and removing default content in a standard way. Also, only deletes old demo content if it hasn't been edited.
Re #7 - I went with option 3)
http://drupalcode.org/project/panopoly_faq.git/commitdiff/15b1fd7?hp=86f...
Comment #9
mrfelton commentedComment #10
mrfelton commented