Closed (fixed)
Project:
Conference Organizing Distribution
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jul 2011 at 09:40 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ezra-g commentedThis function is also defined by other distributions in their install profiles, such as OpenPublish. eg: http://api.acquia.com/api/openpublish/profiles--openpublish--openpublish...
The courteous thing for COD to do would be to check whether this function has already been defined, and only define it if it is not. Patches welcome :).
In the meantime, you can safely comment out this code and manually select the desired install profile, or download the COD_Support modules.
Comment #2
gregglesAnother solution would be to choose a different core module to abuse and define the function for that module. User maybe?
Comment #3
develcuy commentedConfirmed. To fix just add a function_exists before function declaration:
file: profiles/cod/cod.profile
Comment #4
gregglesYeah, I'm starting to think the best practice here is to have an array of candidate names for this function based on core required modules. Then you loop the array and try one until it doesn't exist and you can declare it...
Comment #5
gregglesI think this should do it. I didn't find any evidence of a user version of this function...
That said, I'm tempted to "won't fix" this if it is more complex than this change. Just because the focus for 6.x is on getting it out the door as a 1.0 and this seems like a low priority item.
Comment #6
gregglesSo, I actually tested this and found that you need to either override the filter or system modules because those are the only two that exist at this point.
This seems like it should go in to 6.x-1.0 to me, so tagging.
Comment #7
gregglesNow with 100% less copy-paste error.
Comment #8
gregglesComment #9
ezra-g commentedThanks - #8 doesn't apply, possibly because of http://drupalcode.org/project/cod.git/commit/4ce4eba.
Comment #10
gregglesre-roll + docs.
Comment #11
ezra-g commented#10 properly sets the default installation profile to COD on a fresh install. Committed - Thanks!
http://drupalcode.org/project/cod.git/commit/c02d7e3