function node_recur_get_node_date_field_value in Node recur 7
Determine the value of a node's recurring date field
Parameters
$node: A node
$start: TRUE if the start date should be used. FALSE is the end date should be used.
Return value
The value of the node's date field
2 calls to node_recur_get_node_date_field_value()
- node_recur_generate_dates_from_form in ./node_recur.module 
- Generate dates from a form state
- node_recur_node_recur_form in ./node_recur.pages.inc 
- The node recur form
File
- ./node_recur.module, line 267 
Code
function node_recur_get_node_date_field_value($node, $start = TRUE) {
  // @todo: extract the value the right way, whatever that is..
  if ($field_name = node_recur_get_date_field_name($node->type)) {
    $key = $start ? 'value' : 'value2';
    $field = $node->{$field_name};
    if (isset($field[LANGUAGE_NONE][0][$key])) {
      return $field[LANGUAGE_NONE][0][$key];
    }
  }
  return NULL;
}