Installation/uninstallation of nodeorder reports failure, regardless of actual success or failure.
Problem is that drupal_add_field() and drupal_drop_field() return nested arrays, while the installation functions expect a single flat array.
ie: instead of
if ($ret['success'] === TRUE) { ... }
it should go something like
if ($ret[$i]['success'] === TRUE) { ... }
where $i is an integer. The attached patch iterates through the nested arrays and checks for error values.
| Comment | File | Size | Author |
|---|---|---|---|
| nodeorder.install.fixed_success_checks.patch | 2.53 KB | gunspae |
Comments
Comment #1
pvanderspek commentedPatch commited and will show up in the next new dev release.
Comment #2
pvanderspek commented