You are here

function name_custom_format_edit in Name Field 6

Same name and namespace in other branches
  1. 7 name.admin.inc \name_custom_format_edit()

Page to edit a custom format.

1 string reference to 'name_custom_format_edit'
name_menu in ./name.module
Implementation of hook_menu().

File

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

Code

function name_custom_format_edit($ncfid) {
  if (isset($_POST['op']) && $_POST['op'] == t('Delete') || isset($_POST['confirm'])) {
    return drupal_get_form('name_custom_format_delete_form', $ncfid);
  }
  if ($name = db_fetch_array(db_query("SELECT * FROM {name_custom_format} WHERE ncfid = %d", $ncfid))) {
    return drupal_get_form('name_custom_formats_form', $name);
  }
  drupal_not_found();
}