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.

Comments

pvanderspek’s picture

Status: Needs review » Reviewed & tested by the community

Patch commited and will show up in the next new dev release.

pvanderspek’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -installation

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