You are here

function _content_admin_field_add in Content Construction Kit (CCK) 5

Same name and namespace in other branches
  1. 6 includes/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

./content_admin.inc, line 458
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;
}