function uc_attribute_node_reset_confirm in Ubercart 6.2
Confirmation form to reset product attributes to defaults.
See also
uc_attribute_node_reset_confirm_submit()
1 string reference to 'uc_attribute_node_reset_confirm'
- uc_attribute_menu in uc_attribute/
uc_attribute.module - Implements hook_menu().
File
- uc_attribute/
uc_attribute.admin.inc, line 939 - Attribute administration menu items.
Code
function uc_attribute_node_reset_confirm(&$form_state, $node) {
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
return confirm_form($form, t('Are you sure you want to reset the product attributes and options for %title?', array(
'%title' => $node->title,
)), 'node/' . $node->nid . '/edit/attributes', t('This action cannot be undone.'), t('Reset'), t('Cancel'));
}