Fixed body field in organization content type

This commit is contained in:
Manuel Cillero 2017-09-03 13:10:21 +02:00
parent 7d5864b347
commit f919b88f58
7 changed files with 25 additions and 31 deletions

View file

@ -192,7 +192,6 @@ function stormorganization_node_info() {
'module' => 'stormorganization',
'description' => t("An organization for SuiteDesk."),
'title_label' => t("Name"),
'body_label' => t("Note"),
)
);
}
@ -377,10 +376,6 @@ function stormorganization_form(&$node) {
'#default_value' => isset($node->taxid) ? $node->taxid : NULL,
);
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,
@ -397,7 +392,6 @@ function stormorganization_form_stormorganization_node_form_alter(&$form, &$form
$form['group3']['#access'] = FALSE;
$form['group4']['#access'] = FALSE;
$form['group5']['taxid']['#access'] = FALSE;
$form['body_field']['#access'] = FALSE;
if (!empty($form['#node']->nid)) {
$form['#after_build'][] = 'stormorganization_node_form_after_build';

View file

@ -179,15 +179,5 @@ function theme_stormorganization_view($node, $teaser = FALSE, $page = FALSE) {
);
}
/*
$node->content['body_field'] = array(
'#prefix' => '<div class="stormbody">',
'#suffix' => '</div>',
'#value' => theme('storm_view_item', t('Note'), $node->content['body']['#value']),
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'body_field') : 0,
);
*/
unset($node->content['body']);
return $node;
}