_content_admin_field_remove($type_name, $field_name)Menu callback; present a form for removing a field from a content type.
contributions/cck/content_admin.inc, line 678
<?php
function _content_admin_field_remove($type_name, $field_name) {
$type = content_types($type_name);
$field = $type['fields'][$field_name];
$form = array();
$form['type_name'] = array(
'#type' => 'value',
'#value' => $type_name,
);
$form['field_name'] = array(
'#type' => 'value',
'#value' => $field_name,
);
$output = confirm_form($form,
t('Are you sure you want to remove the field %field?', array('%field' => $field['widget']['label'])),
'admin/content/types/'. $type['url_str'] .'/fields',
t('If you have any content left in this field, it will be lost. This action cannot be undone.'),
t('Remove'), t('Cancel'),
'confirm'
);
return $output;
}
?>