This patch improves the output of Inspect to make it better comply with Drupal's coding standards. It can therefore be pasted into hook_schema()s more easily:
- Indents are 2 spaces, not a mixture of 2 and 3
- Array elements each appear on their own line, making future changes much easier
- All array elements have trailing commas, even the last one in the set, again for easier changes
- Closing parens appear on a line by themselves
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | schema_inspect2.patch | 2 KB | lyricnz |
| #2 | schema_inspect.patch.txt | 3.38 KB | gribnif |
Comments
Comment #1
lyricnz commentedPatch does not appear to be attached
Comment #2
gribnif commentedDon't know what happened to it, but try this file. It may not apply anymore, since it was created back in July.
Comment #3
lyricnz commentedIt appears to be fine (no changes have been committed to Schema module since May). I've just fixed one bug - the 'primary key' attribute was still being indented by 4 spaces.
Comment #4
mikeryanCommitted.