function rdf_preprocess_image

rdf_preprocess_image(&$variables)

Implements MODULE_preprocess_HOOK().

File

modules/rdf/rdf.module, line 770
Enables semantically enriched output for Drupal sites in the form of RDFa.

Code

function rdf_preprocess_image(&$variables) {
  // Adds the RDF type for image. We cannot use the usual entity-based mapping
  // to get 'foaf:Image' because image does not have its own entity type or
  // bundle.
  $variables['attributes']['typeof'] = array('foaf:Image');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!rdf!rdf.module/function/rdf_preprocess_image/7.x