Fixed body field in organization content type
This commit is contained in:
parent
7d5864b347
commit
f919b88f58
7 changed files with 25 additions and 31 deletions
|
@ -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';
|
||||
|
|
Reference in a new issue