function uc_product_save_continue_submit in Ubercart 7.3
Same name and namespace in other branches
- 6.2 uc_product/uc_product.module \uc_product_save_continue_submit()
After the node is saved, redirects to the node 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 867 - The product module for Ubercart.
Code
function uc_product_save_continue_submit($form, &$form_state) {
$form_state['redirect'] = 'node/' . $form_state['nid'] . '/edit';
}