function casetracker_basic_case_form in Case Tracker 6
Same name and namespace in other branches
- 5 casetracker_basic.module \casetracker_basic_case_form()
- 7 casetracker_basic.module \casetracker_basic_case_form()
Implementation of hook_form().
File
- ./
casetracker_basic.module, line 53 - Enables a basic project node type for use with Case Tracker.
Code
function casetracker_basic_case_form(&$node) {
$form = array();
if (casetracker_is_case($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;
}