You are here

function date_context_date_condition::condition_values in Date 8

Same name and namespace in other branches
  1. 7.3 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()

File

date_context/plugins/date_context_date_condition.inc, line 9

Class

date_context_date_condition
Expose term views/term forms by vocabulary as a context condition.

Code

function condition_values() {
  $values = array();
  $fields = field_info_field_map();
  foreach ($fields as $field_name => $value) {
    if ($value['type'] == 'date') {
      $field = field_info_field($field_name);
      $values[$field_name] = $field_name;
    }
  }
  return $values;
}