Currently we are looking for the value of the date field according to the language of the node but it is possible to have a multilingual node with an untranslatable date field, in which scenario the value of the field gets stored as und.

/**
 * Determine if the specific node is date-enabled.
 */
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';
  }
  // Allow using an untranslatable date field.
  if (!empty($node->{$field['field_name']}['und'][0]['value'])) {
    return 'date';
  }
  if (isset($node->{$field['field_name'] . '_value'})) {
    return 'date';
  }
  return 'none';
}

As far as I know this logic is used multiple times in the module, so we should dig in and see which functions are affected. Possibly provide a helper function to get the value of the field.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jerenus’s picture

Status: Active » Needs work

A patch needed.

smithmilner’s picture

Issue summary: View changes
FileSize
531 bytes

I need this.

smithmilner’s picture

Status: Needs work » Needs review
smithmilner’s picture

My last patch didn't go far enough.

smithmilner’s picture

I need this to work with php 5.3. I had to make a small change.