Closed (fixed)
Project:
Google Chart Tools
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2012 at 17:49 UTC
Updated:
19 Oct 2012 at 19:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
konforti commentedYes, this is looks like a good idea.
About the
hook_define_gct_type()andhook_define_gct_type_alter(),Are they both needed?
As I see it, the basic chart types can be hard code in the module with an
hook_define_gct_type_alter()to alter it by other modules.What is the case of using the
hook_define_gct_type()out of the implementation you made in the module?About the Orgchart integration, you right it's very different. most of differences are in the JS file.
Its can be a good idea to split it out to a sub-module.
Comment #2
konforti commentedThe comments on the
hook_define_gct_type_alter()wrong and says:"Implements hook_define_gct_type()."
And one more thing, the hooks definitions should added in the google_chart_tools.api.php file.
Comment #3
btopro commentedNot sure that there's a real reason to have both hook and alter, I think it's more so the convention of true definition / concatenation vs modification of previous results. That way the sub-module (theoretically) is providing it's definition to the lot as opposed to altering it's definition in (minor difference). Both of those sound right and very minor, do you want me to reroll a patch with those included?
Comment #4
konforti commentedYes sure, this will be great.
Comment #5
btopro commentedReroll of patch, changes made from original:
Comment #6
konforti commentedCommitted: http://drupalcode.org/project/google_chart_tools.git/commitdiff/6aa63954...
Thanks.