Hi,

I ran into problems with installing/uninstalling the ND Fivestar

Problem 1: missing ND Fivestar field in DS Layout pages

* Install fivestar
* Create a few content types
* Edit the content types and enable the fivestar widget (Not the CCK version!!)
* Install DS/ND Contribs
* Enable ND Fivestar
* Go to DS and create a new build mode
* Go to the lay out of your new build mode
* Notice that the Fivestar field is missing

Solution: go to your content types and save them again. (without adjusting the settings) Now the widget will show on the DS Layout page!

Problem 2: uninstalling ND Fivestar

* Uninstall ND Fivestar
* Go to the content types management page
* Click on Edit for a content type
* Check the fivestar fieldset. For each content type where you had the widget enabled, it's now magically disabled. How come?

Cause

ND Fivestar overrules the enable/disable flag variable set by the Fivestar module (i.e. fivestar_) and replaces them with it's own variable (i.e. nd_fivestar_). It needs the adjusted variable to function properly. Thing is: the adjusted variable is only set when you click on 'submit' on the edit content type screen. It doesn't automatically handle settings of already submitted content types.

Moreover, the original variables aren't set back when ND Fivestar is uninstalled. So you lose your enable/disable setting for all your content types all together.

Solution

Implement hook_install and hook_uninstall :-)

CommentFileSizeAuthor
#1 nd_contrib-740552.patch1.19 KBnetsensei

Comments

netsensei’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Patch attached ;-)

swentel’s picture

Nice catch, will test and commit this soon!

swentel’s picture

Status: Needs review » Fixed

Committed, see http://drupal.org/cvs?commit=341856 Thanks for the patch!

Status: Fixed » Closed (fixed)

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