Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
31 Jul 2009 at 23:52 UTC
Updated:
4 Oct 2019 at 10:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
videowhisper commentedComment #2
videowhisper commentedComment #3
videowhisper commentedComment #4
avpadernoThe archive is not in the correct format. The archive should contain a directory which is named after the short name of the project (as you plan to set it); that directory must contain all the files for the module. You can check the structure of an archive for an already existing Drupal project.
Bear in mind that files under a license different from GPL License are not allowed in Drupal CVS; the same is true for files that are available from third-party web sites.
Comment #5
videowhisper commentedThank your for your assistance!
Here are the changes we operated:
The archive now contains a v2wvc folder with contents of sites\all\modules\v2wvc .
The extra application that it interfaces and was in a 2wvc folder, now must be downloaded separately.
A message will show in settings if the 2wvc folder is not found and a link will be provided to go to the website where that can be downloaded from.
Comment #6
avpadernoIsn't the field site too big? Compare the definition of that field with the primary key for the nodes table.
The node primary key is handling a lot of nodes in Drupal.org, but it doesn't still create any problems.
The error is caused by the schema array that is not correctly defined (the keys are not defined in the fields).
Compare the schema you defined with the following one, used by Drupal core code (which uses the comma after the last key value, and it doesn't create any database errors):
The function just returns
TRUEin any cases, and it doesn't use the argument passed to it. If you want to allow the access to the user with the permission "use 2wayvideochat", simply remove the access callback index.'access callback' => v2wvc_roomaccessis not correct, anyway.Also, follow the Drupal coding standards for all the code.
Use the capital case only for the first word; the reported title should be "New room name".
Setting the default as you do will always show that value, whatever value has been previously selected by the user. Read more about Form API Reference, and Form API Quickstart GUide. Check also the examples reported there.
hook_requirementsif it is not able to run when it doesn't found a file the user must download.Comment #7
heine commentedA few points (ran out of time):
v2wvc_delete is not a hook_delete implementation. Best to rename this function to prevent possible conflicts.
v2wvc_delete is vulnerable to CSRF. If you make this a confirmation form and do the delete in its submission handler, the issue is solved.
return t('Room not found or does not belong to you.')." ($room by $username)";
$room by $username is not 1) translatable, 2) $username is not escaped. Please use placeholders and see http://drupal.org/node/28984 and http://drupal.org/node/263002.
$myrooms = db_query("SELECT * FROM {v2wvc_rooms} WHERE user='".$user->name."' ORDER BY timelastaccess DESC");
Please use placeholders. Mrs. O'Reilly might once use your module.
l( $row[room] ...
As l() runs check_plain on plain text titles, you'll see double-escaped roomnames (
Foo&Baz's Bar instead of Foo&Baz's Bar)Other variables in v2wvc_new may need escaping.
Comment #8
videowhisper commentedThank you for your suggestions.
Here's a new version, most of it rewritten: as suggested rooms are created as nodes.
Comment #9
avpadernoComment #10
avpadernoSee the Drupal coding standards to understand how a module code should be written.
Comment #11
videowhisper commentedThank you for pointing that.
Used http://drupal.org/project/coder to find and fix everything with "normal" severity.
Comment #12
avpaderno%dis for integers, which don't need the quotation marks.Comment #13
videowhisper commentedThank you for the prompt answer.
1. Added curly braces to all IFs.
2. Added spacing next to . for improved readability.
3. Removed quotation for integer mysql updates.
4. Removed LICENSE.txt .
Comment #14
avpadernoComment #15
avpadernoshould be rewritten as
Comment #18
avpaderno