You are here

function uc_product_save_continue_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_product/uc_product.module \uc_product_save_continue_submit()

After the node is saved, redirects to the edit page.

Some modules add local tasks to product edit forms, but only after it has an nid. Redirecting facilitates the common workflow of continuing to those tasks.

1 string reference to 'uc_product_save_continue_submit'
uc_product_form_alter in uc_product/uc_product.module
Implements hook_form_alter().

File

uc_product/uc_product.module, line 873
The product module for Ubercart.

Code

function uc_product_save_continue_submit($form, &$form_state) {
  $form_state['redirect'] = 'node/' . $form_state['nid'] . '/edit';
}