You are here

function signup_autoclose_sql in Signup 6

Same name and namespace in other branches
  1. 5.2 includes/scheduler.inc \signup_autoclose_sql()
  2. 6.2 includes/scheduler.inc \signup_autoclose_sql()
  3. 7 includes/scheduler.inc \signup_autoclose_sql()
1 call to signup_autoclose_sql()
_signup_cron_autoclose in includes/cron.inc
Helper function that handles auto-closing time-based nodes during cron.

File

includes/scheduler.inc, line 126
Code necessary to determine which scheduler backend(s) to use.

Code

function signup_autoclose_sql($node_type) {
  switch (_signup_get_node_type_scheduler($node_type)) {
    case 'event':
      return _signup_event_autoclose_sql($node_type);
    case 'date':
      return _signup_date_autoclose_sql($node_type);
    default:
      return array();
  }
}