function signup_node_admin_summary_form in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/node_admin_summary.inc \signup_node_admin_summary_form()
- 6 includes/node_admin_summary.inc \signup_node_admin_summary_form()
- 7 includes/node_admin_summary.inc \signup_node_admin_summary_form()
1 call to signup_node_admin_summary_form()
1 string reference to 'signup_node_admin_summary_form'
- signup_node_admin_page in ./
signup.module - Prints the signup details for a single node when the signups tab is clicked
File
- ./
signup.module, line 2117 - The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…
Code
function signup_node_admin_summary_form($node) {
if ($node->signup_close_signup_limit && $node->signup_total >= $node->signup_close_signup_limit) {
$form['status'] = array(
'#value' => t('Closed (limit reached)'),
);
}
else {
$form['status'] = array(
'#type' => 'select',
'#options' => array(
0 => t('Closed'),
1 => t('Open'),
),
'#default_value' => $node->signup_status,
);
}
$form['limit'] = array(
'#type' => 'textfield',
'#default_value' => $node->signup_close_signup_limit,
'#size' => 4,
'#maxlength' => 8,
);
$form['total'] = array(
'#value' => $node->signup_total,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Update'),
);
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
return $form;
}