security updates

have to check views and entityreference for custom patches
This commit is contained in:
Bachir Soussi Chiadmi
2015-04-19 20:45:16 +02:00
parent 802ec0c6f3
commit b3221c71e2
516 changed files with 14267 additions and 7349 deletions

View File

@@ -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')) {