Getting closer to figuring out why I cant get this module working smoothly.
seems uc_sf_account_form_salesforce_api_settings_form_alter executing BEFORE $form['uc_sf_order'] is built by uc_sf_order.module
If I add this test.. I can see it's trying to add the mapping settings to the form before the form has 'uc_sf_order', my breakpoint debugger then shows uc_sf_order's form_alter kicking in AFTER this has been added, effectively nuking the field mapping screen.
Which makes configuring this module impossible
function uc_sf_account_form_salesforce_api_settings_form_alter(&$form, $form_state) {
// Adds the fieldset for account export settings
if(!isset($form['uc_sf_order'])) { drupal_set_message('Ouch! Adding export_account_default settings to unpopulated form'); }
i see there is no weightings for this
mysql> select name,status,weight from system where name like "uc_sf%" order by name;
+--------------------+--------+--------+
| name | status | weight |
+--------------------+--------+--------+
| uc_sf_account | 1 | 0 |
| uc_sf_attribute | 0 | 0 |
| uc_sf_coupon | 1 | 0 |
| uc_sf_extra_fields | 0 | 0 |
| uc_sf_order | 1 | 0 |
| uc_sf_order_ocr | 1 | 0 |
| uc_sf_product | 1 | 0 |
| uc_sf_user | 0 | 0 |
+--------------------+--------+--------+
8 rows in set (0.00 sec)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Screenshot - 09122011 - 06:42:51 PM.png | 46.62 KB | dgtlmoon |
Comments
Comment #1
dgtlmoon commentedChanging the weight made the configuration screen display
Attached is screenshot of missing configuration fieldset that now displays
Comment #2
EvanDonovan commentedAh yes. I forgot that when I committed that module, I didn't set the weight in the install file. I had just done it manually in development.
The uc_sf_account module is still experimental.
I'll try to write a patch setting the weight shortly if you don't beat me to it :)
Comment #3
EvanDonovan commentedCould you write a patch that sets the weight in the install file? Then I could commit it.
I just haven't had the time presently, sorry.