You are here

function signup_autoclose_sql in Signup 7

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. 6 includes/scheduler.inc \signup_autoclose_sql()

@todo Please document this function.

See also

http://drupal.org/node/1354

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 136
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();
  }
}