Closed (won't fix)
Project:
Drupal.org CVS applications
Component:
miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Dec 2009 at 21:21 UTC
Updated:
18 Jun 2011 at 09:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
kevinquillen commentedHere is my current working copy of the module for review.
Comment #2
kevinquillen commentedComment #3
avpadernoFiles available from third-party sites should not be included in Drupal.org CVS.
In Drupal.org CVS the only accepted files are the ones licensed under GPL license v2+; compatible licenses are not accepted.
Comment #4
avpadernoComment #5
kevinquillen commentedOkay, I have moved the file and included installation instructions.
Comment #6
kevinquillen commentedComment #7
kevinquillen commentedAny update?
Comment #8
avpadernoThat is not the way a module gets the directory where it is installed.
To load a module there is a Drupal function that can be used. Third-party modules should then be loaded only if they are enabled. If the proposed module depends on content_copy.module, then it should declare its dependency from that module.
What would happen if content_copy.module has not been installed, and a module loads it with the code I reported here?
I am not sure what you are trying to do. No existing module uses such code. Are you sure there isn't a better way to do what you are trying to do? If you are trying to populate
$content, then you should use the value returned from a function.To build such queries (the one with
DISTINCTin) there is a Drupal function that should be called.Why is the code calling twice that object method when it could call it just once?
The code load the node without to even verify if it has been unpublished; there could be some problems with that.
returnis the last instruction of a function.The first argument of
t()is a literal string, not a dynamic value; differently, the script to extract the strings to translate will not extract the string.Strings used in the user interface needs to be translated; this includes also the strings used as options for the form fields.
Whenever possible, HTML tags should be keep outside translated strings.
The function is outputting too much HTML. It should use a theme function.
Comment #9
kevinquillen commentedI admit the CCK stuff was a quick dirty way to get up and running development-wise.
For #5, I am not sure what you mean. How would I let other modules chime in?
So for #13, return theme('style', $output)?
Comment #10
kevinquillen commentedWhat I was trying to do in the install file was create a CCK type by importing a definition file, I am not sure of the best way to do that. I was following the lead of some install profiles.
Comment #11
avpadernoMy comment was not correct;
node_save()already calls thehook_nodeapi()implementations of third-party modules, and thehook_node()implementation of the module that defines the content type being saved.Comment #12
kevinquillen commenteditem-list was the style type I was referring to, but I used theme_item_list instead, seems to still work. I will make these changes and get it back up asap.
Comment #13
avpadernoThere have not been replies from the OP in the past 7 days. I am marking this report as .
Comment #14
rout commentedJust wondering if this module will be available for download soon?
Comment #15
avpaderno@rout: This report has been marked as ; this means that has not obtained a CVS account, without of which he cannot commit anything in CVS.
Comment #16
kevinquillen commentedI am working on the changes and will re-attempt later in January.
Comment #17
Russell Mann commentedsubscribe