- Patch #664012 by Bojhan, Dries: removed unnecessary fieldset.
parent
d1c017660c
commit
275fc6bdb2
|
@ -76,11 +76,7 @@ function node_type_form($form, &$form_state, $type = NULL) {
|
||||||
// Make the type object available to implementations of hook_form_alter.
|
// Make the type object available to implementations of hook_form_alter.
|
||||||
$form['#node_type'] = $type;
|
$form['#node_type'] = $type;
|
||||||
|
|
||||||
$form['identity'] = array(
|
$form['name'] = array(
|
||||||
'#type' => 'fieldset',
|
|
||||||
'#title' => t('Identification'),
|
|
||||||
);
|
|
||||||
$form['identity']['name'] = array(
|
|
||||||
'#title' => t('Name'),
|
'#title' => t('Name'),
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#default_value' => $type->name,
|
'#default_value' => $type->name,
|
||||||
|
@ -104,7 +100,7 @@ function node_type_form($form, &$form_state, $type = NULL) {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
$form['identity']['type'] = array(
|
$form['type'] = array(
|
||||||
'#title' => t('Machine name'),
|
'#title' => t('Machine name'),
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#default_value' => $type->type,
|
'#default_value' => $type->type,
|
||||||
|
@ -117,13 +113,13 @@ function node_type_form($form, &$form_state, $type = NULL) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$form['identity']['type'] = array(
|
$form['type'] = array(
|
||||||
'#type' => 'value',
|
'#type' => 'value',
|
||||||
'#value' => $type->type,
|
'#value' => $type->type,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$form['identity']['description'] = array(
|
$form['description'] = array(
|
||||||
'#title' => t('Description'),
|
'#title' => t('Description'),
|
||||||
'#type' => 'textarea',
|
'#type' => 'textarea',
|
||||||
'#default_value' => $type->description,
|
'#default_value' => $type->description,
|
||||||
|
|
Loading…
Reference in New Issue