Conforming to coding standards
webchick - November 15, 2005 - 07:08
| Project: | Form Updater |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Just a very small patch which allows output to conform to the coding standards. Instead of:
$form['foo'] = array(
'#type' => 'textfield',
'#title' => t('Foo'),
...
'#description' => t('A description of Foo.')
);It makes it:
$form['foo'] = array(
'#type' => 'textfield',
'#title' => t('Foo'),
...
'#description' => t('A description of Foo.'),
);Note the alignment of the closing ) and the comma after the last form element (even though this looks like an error, it's a practiced used [even by PHP itself] to help eliminate errors related to adding an element to the end of an array and forgetting to add the comma in).
| Attachment | Size |
|---|---|
| formupdater.coding.standards.patch | 615 bytes |

#1
Per jjeff, I have committed this patch to formupdater module
#2