function _signup_node_completed in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/scheduler.inc \_signup_node_completed()
- 6 includes/scheduler.inc \_signup_node_completed()
- 7 includes/scheduler.inc \_signup_node_completed()
Determine if the given node has date/time data and if it already started.
2 calls to _signup_node_completed()
- signup_save_node in ./
signup.module - Save signup-related information when a node is created or edited.
- _signup_check_limit in ./
signup.module - Checks the signup limit for a given node, and sees if a change in either the limit or total # of signups should result in a change in signup status (open vs. closed) and prints a message indicating what happened.
File
- includes/
scheduler.inc, line 93 - Code necessary to determine which scheduler backend(s) to use.
Code
function _signup_node_completed($node) {
if (is_numeric($node)) {
$node = node_load($node);
}
switch (_signup_get_node_scheduler($node)) {
case 'event':
return _signup_event_node_completed($node);
case 'date':
return _signup_date_node_completed($node);
default:
return FALSE;
}
}