Removed the body field in nodes of type person
This commit is contained in:
parent
55692f7fa4
commit
6e1858d531
3 changed files with 2 additions and 15 deletions
|
@ -32,7 +32,7 @@ function stormperson_list() {
|
||||||
'field' => 'spe.organization_title',
|
'field' => 'spe.organization_title',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'data' => t('Name'),
|
'data' => t('Full name'),
|
||||||
'field' => 'n.title',
|
'field' => 'n.title',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -295,7 +295,7 @@ function stormperson_form(&$node) {
|
||||||
|
|
||||||
$form['group1']['title'] = array(
|
$form['group1']['title'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => check_plain($type->title_label),
|
'#title' => check_plain(t($type->title_label)),
|
||||||
'#required' => TRUE,
|
'#required' => TRUE,
|
||||||
'#default_value' => $node->title,
|
'#default_value' => $node->title,
|
||||||
'#size' => 40,
|
'#size' => 40,
|
||||||
|
@ -373,10 +373,6 @@ function stormperson_form(&$node) {
|
||||||
'#default_value' => isset($node->im) ? $node->im : '',
|
'#default_value' => isset($node->im) ? $node->im : '',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($type->has_body) {
|
|
||||||
$form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);
|
|
||||||
}
|
|
||||||
|
|
||||||
$form['title_old'] = array(
|
$form['title_old'] = array(
|
||||||
'#type' => 'hidden',
|
'#type' => 'hidden',
|
||||||
'#default_value' => isset($node->title_old) ? $node->title_old : NULL,
|
'#default_value' => isset($node->title_old) ? $node->title_old : NULL,
|
||||||
|
|
|
@ -109,14 +109,5 @@ function theme_stormperson_view($node, $teaser = FALSE, $page = FALSE) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
# $node->content['body_field'] = array(
|
|
||||||
# '#prefix' => '<div class="stormbody">',
|
|
||||||
# '#suffix' => '</div>',
|
|
||||||
# '#value' => theme('storm_view_item', t('Description'), $node->content['body']['#value']),
|
|
||||||
# '#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'body_field') : -18,
|
|
||||||
# );
|
|
||||||
|
|
||||||
unset($node->content['body']);
|
|
||||||
|
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue