function mobile_codes_presets_delete in Mobile Codes 6
Same name and namespace in other branches
- 5 mobile_codes.admin.inc \mobile_codes_presets_delete()
1 string reference to 'mobile_codes_presets_delete'
- mobile_codes_menu in ./
mobile_codes.module - Implementation of hook_menu().
File
- ./
mobile_codes.admin.inc, line 219
Code
function mobile_codes_presets_delete(&$form_state, $pid) {
$preset = mobile_codes_load_preset($pid);
$form['pid'] = array(
'#type' => 'value',
'#value' => $preset->pid,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $preset->name,
);
return confirm_form($form, t('Are you sure you want to delete the preset %name?', array(
'%name' => $preset->name,
)), 'admin/settings/mobile_codes/presets/list', t('This action cannot be undone') . '.', t('Delete'), t('Cancel'));
}