Skip to content

Commit

Permalink
javascript settings array for commerce_stripe integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah John committed Apr 8, 2014
1 parent fd8089b commit 7f003ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/payment/commerce_marketplace_payment.module
Expand Up @@ -439,6 +439,11 @@ function commerce_marketplace_payment_form_alter(&$form, &$form_state, $form_id)
$wrapper_id = 'commerce-checkout-form-' . $form_state['order']->order_id;
$form['#prefix'] = '<div id="' . $wrapper_id . '">';
$form['#suffix'] = '</div>';
//add settings for others modules to check whether commerce-marketplace-payment is enabled
$js_settings = array(
'commerce_marketplace_payment_enabled' => 1
);
drupal_add_js(array('commerce_marketplace' => $js_settings), 'setting');
}

// $form_state['orders'] array containing all orders in the current order
Expand Down

0 comments on commit 7f003ea

Please sign in to comment.