Needs review
Project:
Citizens Connected
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2013 at 19:32 UTC
Updated:
15 Jan 2014 at 19:23 UTC
Jump to comment: Most recent, Most recent file
Would be good to run this through Coder. There's some i18n stuff which might be important for national campaigns.
Some potential problems with "Potential problem: FAPI elements '#title' and '#description' only accept filtered text, be sure to use check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized." and "Potential problem: drupal_set_message() only accepts filtered text, be sure all !placeholders for $variables in t() are fully sanitized using check_plain(), filter_xss() or similar. (Drupal Docs)"
But this should just e marked as a todo item or something that someone can contribute back to the project.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | citcon-coder-review-2131819-2.patch | 18.54 KB | mgifford |
| #1 | citcon-coder-review-2131819-1.patch | 16.25 KB | mgifford |
Comments
Comment #1
mgiffordComment #2
mgiffordOops, forgot these.
Comment #3
Tarnjit commentedAfter applying this patch ( citcon-coder-review-2131819-2.patch), I had the following errors:
Notice: Undefined index: field in citcon_email_form_citcon_supporter_form_alter() (line 539 of /data/www/dm7/sites/imdb.com/modules/citcon/modules/citcon_email/citcon_email.module).
Warning: array_keys() expects parameter 1 to be array, null given in citcon_email_form_citcon_supporter_form_alter() (line 539 of /data/www/dm7/sites/imdb.com/modules/citcon/modules/citcon_email/citcon_email.module).
Warning: Invalid argument supplied for foreach() in citcon_email_form_citcon_supporter_form_alter() (line 539 of /data/www/dm7/sites/imdb.com/modules/citcon/modules/citcon_email/citcon_email.module).
In addition the drop down menu for "Supporter type" no longer worked. No options in the drop down. So therefore none of the module worked.