You are here

function _signup_date_get_node_scheduler in Signup 7

Same name and namespace in other branches
  1. 5.2 includes/date.inc \_signup_date_get_node_scheduler()
  2. 6.2 includes/date.inc \_signup_date_get_node_scheduler()
  3. 6 includes/date.inc \_signup_date_get_node_scheduler()

Determine if the specific node is date-enabled.

1 call to _signup_date_get_node_scheduler()
_signup_get_node_scheduler in includes/scheduler.inc
Determine which scheduler backend to use for the given node.

File

includes/date.inc, line 82
Code to support using CCK date fields for time-based signup functionality.

Code

function _signup_date_get_node_scheduler($node) {
  $field = signup_date_field($node->type);
  if (!empty($node->{$field['field_name']}[$node->language][0]['value'])) {
    return 'date';
  }
  if (isset($node->{$field['field_name'] . '_value'})) {
    return 'date';
  }
  return 'none';
}