You are here

function _content_admin_field_add in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content_admin.inc \_content_admin_field_add()

Menu callback; presents the form for adding a new field.

1 string reference to '_content_admin_field_add'
content_menu in ./content.module
Implementation of hook_menu().

File

includes/content.admin.inc, line 416
Administrative interface for content type creation.

Code

function _content_admin_field_add($type_name) {

  // make sure the old field list gets cleared before creating the new one
  if (!isset($_POST['edit'])) {
    content_clear_type_cache();
  }
  $output = drupal_get_form('_content_admin_field_add_existing', $type_name);
  $output .= drupal_get_form('_content_admin_field_add_new', $type_name);
  return $output;
}