You are here

function _signup_node_completed in Signup 6

Same name and namespace in other branches
  1. 5.2 includes/scheduler.inc \_signup_node_completed()
  2. 6.2 includes/scheduler.inc \_signup_node_completed()
  3. 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 includes/node_form.inc
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 84
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;
  }
}