Adjusted fields order in SuiteDesk components

This commit is contained in:
Manuel Cillero 2017-09-08 08:10:07 +02:00
parent 42164e7778
commit 892f86fc25
4 changed files with 4 additions and 21 deletions

View file

@ -298,7 +298,7 @@ function stormproject_node_info() {
'module' => 'stormproject',
'description' => t("A project for SuiteDesk."),
'title_label' => t("Title"),
'body_label' => t("Description"),
'has_body' => FALSE,
)
);
}
@ -505,11 +505,9 @@ function stormproject_form(&$node) {
$people[$person->nid] = $person->title;
}
# $options = array(0 => '- none -', 'People:' => $people);
$options = array(0 => t('- none -'), t('People:') => $people);
}
else {
# $options = array(0 => '- none -');
$options = array(0 => t('- none -'));
}
@ -530,11 +528,9 @@ function stormproject_form(&$node) {
$teams[$team->nid] = $team->title;
}
# $options = array(0 => '- unassigned -', 'Teams:' => $teams, 'People:' => $people);
$options = array(0 => t('- unassigned -'), t('Teams:') => $teams, t('People:') => $people);
}
else {
# $options = array(0 => '- unassigned -');
$options = array(0 => t('- unassigned -'));
}
@ -589,10 +585,6 @@ function stormproject_form(&$node) {
'#default_value' => 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,

View file

@ -166,14 +166,5 @@ function theme_stormproject_view($node, $teaser = FALSE, $page = FALSE) {
'#weight' => 2,
);
# $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;
}

View file

@ -102,7 +102,7 @@ function stormteam_node_info() {
'stormteam' => array(
'name' => t('Team'),
'module' => 'stormteam',
'description' => t('A team for use within the SuiteDesk project management application'),
'description' => t('A team for SuiteDesk.'),
'title_label' => t('Team Name'),
'body_label' => t('Description'),
)

View file

@ -246,9 +246,9 @@ function stormtimetracking_node_info() {
'stormtimetracking' => array(
'name' => t('Timetracking'),
'module' => 'stormtimetracking',
'description' => t("A timetracking for Storm."),
'description' => t("A timetracking for SuiteDesk."),
'title_label' => t("Title"),
'body_label' => t("Description"),
'body_label' => t("Notes"),
)
);
}