Adjusted fields order in SuiteDesk components
This commit is contained in:
parent
42164e7778
commit
892f86fc25
4 changed files with 4 additions and 21 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue