function _signup_get_node_scheduler in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/scheduler.inc \_signup_get_node_scheduler()
- 6 includes/scheduler.inc \_signup_get_node_scheduler()
- 7 includes/scheduler.inc \_signup_get_node_scheduler()
Determine which scheduler backend to use for the given node.
Parameters
$node: Fully loaded node object to test.
Return value
'event' to use the event.module, 'date' for the date.module, or 'none' if the node is untimed.
See also
_signup_event_get_node_scheduler()
_signup_date_get_node_scheduler()
5 calls to _signup_get_node_scheduler()
- signup_alter_node_form in ./
signup.module - Alters the node form to inject the appropriate per-node signup settings.
- signup_extra_tokens in ./
signup.module - Return an array of extra email tokens supported by the given node.
- signup_format_date in includes/
scheduler.inc - signup_sign_up_user in ./
signup.module - Signs up a user to a node.
- _signup_node_completed in includes/
scheduler.inc - Determine if the given node has date/time data and if it already started.
File
- includes/
scheduler.inc, line 54 - Code necessary to determine which scheduler backend(s) to use.
Code
function _signup_get_node_scheduler($node) {
switch (_signup_get_node_type_scheduler($node->type)) {
case 'event':
return _signup_event_get_node_scheduler($node);
case 'date':
return _signup_date_get_node_scheduler($node);
default:
return 'none';
}
}