summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2014-01-23 14:16:54 (GMT)
committerTorsten Grote <grote@kolabsys.com>2014-01-23 14:16:54 (GMT)
commit9ec77367e92d9c9dd55f6b4f3d88b09f18e56b49 (patch)
tree301223a76d554f5c61a849534e1c52922a2fd984 /kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc
parentf2e198d9dc13020ac2307d2e58cfc9b650a1ecec (diff)
downloadkolab.org-www-9ec77367e92d9c9dd55f6b4f3d88b09f18e56b49.tar.gz
bring most modules up to date
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc b/kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc
index b104702..46ea317 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/date/date.field.inc
@@ -125,8 +125,16 @@ function date_field_formatter_view($entity_type, $entity, $field, $instance, $la
'attributes' => array(),
'rdf_mapping' => array(),
'add_rdf' => module_exists('rdf'),
+ 'microdata' => array(),
+ 'add_microdata' => module_exists('microdata'),
);
+ // If the microdata module is enabled, the microdata mapping will have been
+ // passed in via the entity.
+ if ($variables['add_microdata'] && isset($entity->microdata[$field['field_name']])) {
+ $variables['microdata'] = $entity->microdata[$field['field_name']];
+ }
+
// If there is an RDf mapping for this date field, pass it down to the theme.
$rdf_mapping = array();
if (!empty($entity->rdf_mapping) && function_exists('rdf_rdfa_attributes')) {