rdf_process

function rdf_process

rdf_process(&$variables, $hook)

Template process function for adding extra tags to hold RDFa attributes.

Since template files already have built-in support for $attributes, $title_attributes, and $content_attributes, and field templates have support for $item_attributes, we try to leverage those as much as possible. However, in some cases additional attributes are needed not covered by these. We deal with those here.

File

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

Code

function rdf_process(&$variables, $hook) {
  // Handles attributes needed for content not covered by title, content,
  // and field items. It does this by adjusting the variable sent to the
  // template so th