function signup_node_admin_page in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/node_admin.inc \signup_node_admin_page()
- 6 includes/node_admin.inc \signup_node_admin_page()
- 7 includes/node_admin.inc \signup_node_admin_page()
Prints the signup details for a single node when the signups tab is clicked
1 string reference to 'signup_node_admin_page'
- signup_menu in ./
signup.module - Implementation of hook_menu().
File
- ./
signup.module, line 1879 - 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_page($node) {
drupal_set_title(check_plain($node->title));
// Administrative table to control signups for this node.
$signup_node_admin_summary_form = drupal_get_form('signup_node_admin_summary_form', $node);
// Signup details table, including cancel checkboxes.
$signup_node_admin_details_form = drupal_get_form('signup_node_admin_details_form', $node);
if ($node->signup_status) {
// Add a form to allow the administrator to signup other users.
$signup_form = drupal_get_form('signup_form', $node, 'admin');
}
else {
$signup_form = '';
}
return theme('signup_node_admin_page', $node, $signup_node_admin_summary_form, $signup_node_admin_details_form, $signup_form);
}