function name_custom_format_delete_form_submit in Name Field 6
Same name and namespace in other branches
- 7 name.admin.inc \name_custom_format_delete_form_submit()
Submit handler for name_custom_format_delete_form().
File
- ./
name.admin.inc, line 302 - General administration functions.
Code
function name_custom_format_delete_form_submit($form, &$form_state) {
db_query("DELETE FROM {name_custom_format} WHERE ncfid = %d", $form_state['values']['ncfid']);
drupal_set_message(t('The custom name format %name was deleted.', array(
'%name' => $form['#name']['name'],
)));
$form_state['redirect'] = 'admin/settings/name';
}