Attached is a patch that fixes the node editing form for Amazon nodes, re-adding the Title textfield and properly weighting the ASIN textfield so that it appears beneath the ody, rather than beneath the admin options.

Also, updated amazon_block configuration case to support 4.7's form api.

CommentFileSizeAuthor
amazon.module_0.patch3.49 KBeaton

Comments

Prometheus6’s picture

Status: Needs review » Postponed

The patch changes the import form, using the old form functions

+      $_amazon_search_params['TotalPages'] = $_amazon_operation_request['stats'];
+      $output .= form_hidden('BrowseField', $_search_form_values['BrowseField']);
+      $output .= form_hidden('SearchFor', $_search_form_values['SearchFor']);
+
+      foreach ($_amazon_items as $_amazon_item) {
+        $output .= theme_amazon_importitem($_amazon_item);
+      }
+      $output .= '</table>';
+      $output .= form_submit('Import') . form_submit('Import and continue');

Also, I've decided to suspend work on this Form API conversion until the first release candidate. MUCH less frustration that way. I'll absolutely commit to having it ready for the official release of 4.7.

Prometheus6’s picture

Assigned: Unassigned » Prometheus6
Status: Postponed » Closed (fixed)