Projet

Général

Profil

Paste
Télécharger (472 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / rdf / tests / rdf_test.install @ db2d93dd

1
<?php
2

    
3
/**
4
 * @file
5
 * Install, update and uninstall functions for the rdf module.
6
 */
7

    
8
/**
9
 * Implements hook_install().
10
 */
11
function rdf_test_install() {
12
  $rdf_mappings = array(
13
    array(
14
      'type' => 'node',
15
      'bundle' => 'test_bundle_hook_install',
16
      'mapping' => array(
17
        'rdftype' => array('foo:mapping_install1', 'bar:mapping_install2'),
18
      ),
19
    ),
20
  );
21

    
22
  foreach ($rdf_mappings as $rdf_mapping) {
23
    rdf_mapping_save($rdf_mapping);
24
  }
25
}