Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
18 Oct 2009 at 04:37 UTC
Updated:
7 Oct 2019 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pm530 commentedComment #2
pm530 commentedComment #3
pm530 commentedPlease review this code
Comment #4
avpadernoSee the Drupal coding standards to understand how a module code should be written.
Comment #5
pm530 commentedFixed the format problems. It has been checked by the code module. Please review.
Comment #6
avpadernoRemove that information, which is added by the packaging script.
Menu title and description are not passed to
t()because that is already done by Drupal core code.The error message is too generic; the users cannot understand what is wrong.
If the error is not caused by the users, then showing such message can just confuse them. In the case that value is negative, it could be better to do as it is zero; the code could register the error using
watchdog().The line should be formatted as
$award_points = (int) $award[0]['value'];.Generally speaking, when the code access the index of an array, the code should be written as
$array['index'], without any spaces between.Comment #7
pm530 commentedThanks for your help. Updated, please review.
Comment #8
avpadernoSee point #5 in my previous comment; there are code lines that still use code like
$a ['index'] = $value. The space between the variable name, and the open square bracket needs to be removed.Comment #9
pm530 commentedMy Bad, Fixed. Please review.
Comment #10
pm530 commentedComment #11
avpadernoComment #14
avpaderno