Fix for Fix for rdf.api.php

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Hooks provided by the RDF module.
  7.  */
  8.  
  9. /**
  10.  * @addtogroup hooks
  11.  * @{
  12.  */
  13.  
  14. /**
  15.  * Allow modules to define their own RDF mappings.
  16.  *
  17.  * @return
  18.  *   An associative array of mappings. Most keys will be bundle names, but
  19.  *   mappings can also be defined for non-bundles.
  20.  */
  21. function hook_rdf_mapping() {
  22.   return array(
  23.     'blog' => array(
  24.       'rdftype' => 'sioc:Post',
  25.       'title'   => array('dc:title', 'sioc:Title'),
  26.       'created' => 'dc:date',
  27.       'uid'     => 'sioc:has_creator',
  28.     )
  29.   );
  30. }
  31.  
  32. /**
  33.  * Allow modules to override existing mappings.
  34.  *  
  35.  * @param $mappings
  36.  *   An associative array of mappings
  37.  * @return
  38.  *   void
  39.  *
  40.  */
  41. function hook_rdf_mapping_alter(&$mapping) {
  42. }
  43.  
  44. /**
  45.  * @} End of "addtogroup hooks".
  46.  */

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.