function casetracker_basic_project_form in Case Tracker 6
Same name and namespace in other branches
- 5 casetracker_basic.module \casetracker_basic_project_form()
- 7 casetracker_basic.module \casetracker_basic_project_form()
Implementation of hook_form().
File
- ./
casetracker_basic.module, line 40 - Enables a basic project node type for use with Case Tracker.
Code
function casetracker_basic_project_form(&$node) {
$form = array();
if (casetracker_is_project($node->type)) {
$type = node_get_types('type', $node);
$form['title'] = array(
'#type' => 'textfield',
'#title' => check_plain($type->title_label),
'#required' => TRUE,
'#default_value' => !empty($node->title) ? $node->title : NULL,
'#weight' => -5,
);
$form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);
}
return $form;
}