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

Comments

lyricnz’s picture

Status: Needs review » Needs work

Patch does not appear to be attached

gribnif’s picture

Status: Needs work » Needs review
StatusFileSize
new3.38 KB

Don't know what happened to it, but try this file. It may not apply anymore, since it was created back in July.

lyricnz’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2 KB

It 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.

mikeryan’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.