You are here

public function date_context_date_condition::condition_values in Date 7.3

Same name and namespace in other branches
  1. 8 date_context/plugins/date_context_date_condition.inc \date_context_date_condition::condition_values()
  2. 7.2 date_context/plugins/date_context_date_condition.inc \date_context_date_condition::condition_values()

Condition values.

Overrides context_condition_node::condition_values

File

date_context/plugins/date_context_date_condition.inc, line 16
Context condition plugin for date values.

Class

date_context_date_condition
Context condition plugin for date values.

Code

public function condition_values() {
  $values = array();
  $fields = field_info_fields();
  foreach ($fields as $field_name => $field) {
    if (in_array($field['type'], array(
      'date',
      'datetime',
      'datestamp',
    ))) {
      $values[$field_name] = $field_name;
    }
  }
  return $values;
}