You are here

function _signup_date_get_node_scheduler in Signup 5.2

Same name and namespace in other branches
  1. 6.2 includes/date.inc \_signup_date_get_node_scheduler()
  2. 6 includes/date.inc \_signup_date_get_node_scheduler()
  3. 7 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 85
Shared code required for any site using CCK date fields, regardless of the version of date in use.

Code

function _signup_date_get_node_scheduler($node) {
  $field = signup_date_field($node->type);
  if (isset($node->{$field['field_name']})) {
    return 'date';
  }
  if (isset($node->{$field['database']['columns']['value']['column']})) {
    return 'date';
  }
  return 'none';
}