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',
|
||||
),
|
||||
array(
|
||||
'data' => t('Name'),
|
||||
'data' => t('Full name'),
|
||||
'field' => 'n.title',
|
||||
),
|
||||
array(
|
||||
|
|
|
@ -295,7 +295,7 @@ function stormperson_form(&$node) {
|
|||
|
||||
$form['group1']['title'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => check_plain($type->title_label),
|
||||
'#title' => check_plain(t($type->title_label)),
|
||||
'#required' => TRUE,
|
||||
'#default_value' => $node->title,
|
||||
'#size' => 40,
|
||||
|
@ -373,10 +373,6 @@ function stormperson_form(&$node) {
|
|||
'#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(
|
||||
'#type' => 'hidden',
|
||||
'#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;
|
||||
}
|
||||
|
|
Reference in a new issue