Chris@0: /** Chris@0: * Implements hook_preprocess_HOOK(). Chris@0: */ Chris@0: function {{ machine_name }}_preprocess_HOOK(&$variables) { Chris@0: // This example is from rdf_preprocess_image(). It adds an RDF attribute Chris@0: // to the image hook's variables. Chris@0: $variables['attributes']['typeof'] = ['foaf:Image']; Chris@0: }