You are here

function name_custom_format_delete_form_submit in Name Field 7

Same name and namespace in other branches
  1. 6 name.admin.inc \name_custom_format_delete_form_submit()

Submit handler for name_custom_format_delete_form().

File

./name.admin.inc, line 465
General administration functions.

Code

function name_custom_format_delete_form_submit($form, &$form_state) {
  db_delete('name_custom_format')
    ->condition('ncfid', $form_state['values']['ncfid'])
    ->execute();
  drupal_set_message(t('The custom name format %name was deleted.', array(
    '%name' => $form['#name']['name'],
  )));
  $form_state['redirect'] = 'admin/config/content/name';
}