#156793 by webernet: menu reset confirmation form contained deletion API remainings
parent
2aeab67487
commit
0c0a340f29
|
@ -486,12 +486,7 @@ function menu_item_delete_form_submit($form, &$form_state) {
|
||||||
*/
|
*/
|
||||||
function menu_reset_item(&$form_state, $item) {
|
function menu_reset_item(&$form_state, $item) {
|
||||||
$form['item'] = array('#type' => 'value', '#value' => $item);
|
$form['item'] = array('#type' => 'value', '#value' => $item);
|
||||||
|
return confirm_form($form, t('Are you sure you want to reset the item %item to its default values?', array('%item' => $item['link_title'])), 'admin/build/menu-customize/'. $item['menu_name'], t('Any customizations will be lost. This action cannot be undone.'), t('Reset'));
|
||||||
$options = array(
|
|
||||||
'description' => t('Any customizations will be lost. This action cannot be undone.'),
|
|
||||||
'yes' => t('Reset')
|
|
||||||
);
|
|
||||||
return confirm_form($form, t('Are you sure you want to reset the item %item to its default values?', array('%item' => $item['link_title'])), 'admin/build/menu-customize/'. $item['menu_name'], $options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue