You are here

function _signup_get_node_scheduler in Signup 6.2

Same name and namespace in other branches
  1. 5.2 includes/scheduler.inc \_signup_get_node_scheduler()
  2. 6 includes/scheduler.inc \_signup_get_node_scheduler()
  3. 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_get_node_scheduler()

_signup_event_get_node_scheduler()

_signup_date_get_node_scheduler()

5 calls to _signup_get_node_scheduler()
signup_broadcast_form in includes/broadcast.inc
Form builder for the signup broadcast form.
signup_format_date in includes/scheduler.inc
signup_node_settings_page in includes/node_settings.inc
Page callback for the node/N/signups/settings subtab.
signup_send_forwarding_mail in ./signup.module
Send the signup forwarding mail when a user signs up for something.
_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 45
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';
  }
}