function date_context_date_condition::condition_values

cis7 date_context_date_condition.inc date_context_date_condition::condition_values()
cle7 date_context_date_condition.inc date_context_date_condition::condition_values()
elmsmedia7 date_context_date_condition.inc date_context_date_condition::condition_values()
icor7 date_context_date_condition.inc date_context_date_condition::condition_values()
meedjum_blog7 date_context_date_condition.inc date_context_date_condition::condition_values()
mooc7 date_context_date_condition.inc date_context_date_condition::condition_values()

Condition values.

Overrides context_condition_node::condition_values

File

sites/all/modules/ulmus/date/date_context/plugins/date_context_date_condition.inc, line 7

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_fields();
  foreach ($fields as $field_name => $field) {
    if (in_array($field['type'], array('date', 'datetime', 'datestamp'))) {
      $values[$field_name] = $field_name;
    }
  }
  return $values;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.