Poking around the code this module is the most confusing task I've had to undertake with drupal. I have a few specific questions:

Why all the define() statements? Wouldn't it make maintenance simpler to just hardcode the defaults into views_slideshow_views_slideshow_option_definition() (and where ever else)?

Why so many include files? Again, wouldn't it be easier for maintenance for to amalgamate some of these?

Why the hardcoded JS in the views_slideshow.theme.inc? It would seem neater to me to separate that out and use drupal_set_js() to include both the script and the variables, in Drupal.settings.views_slideshow.variablename.

If agree with any of these suggestions, consider this a task. I'd be happy to provide patches if I get around to creating them.

Comments

redndahead’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

Moving to 2.x

If you would like to start some patches I would be interested to see what you have in mind.

fearlsgroove’s picture

Agreed there's definitely cleanup to be done. 2.x is somewhat better and stuff is moved around. My preference would be not to add new features or do non-bugfix cleanup to 1.x, but there's a relatively sizable user base for this module. Further while all one needs to do is reconfigure the view after upgrading to 2.x, it's still not a clean upgrade path. Thus, I'd say patches that handle cleanup would be quite welcome, I just won't have much time to write them myself :D

redndahead’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking as fixed. Feel free to reopen if you still have problems.

naught101’s picture

Fine by me.

Status: Fixed » Closed (fixed)

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