rdf_test.install

Install, update and uninstall functions for the rdf module.

File

modules/rdf/tests/rdf_test.install

View source
<?php


/**
 * @file
 * Install, update and uninstall functions for the rdf module.
 */

/**
 * Implements hook_install().
 */
function rdf_test_install() {
    $rdf_mappings = array(
        array(
            'type' => 'node',
            'bundle' => 'test_bundle_hook_install',
            'mapping' => array(
                'rdftype' => array(
                    'foo:mapping_install1',
                    'bar:mapping_install2',
                ),
            ),
        ),
    );
    foreach ($rdf_mappings as $rdf_mapping) {
        rdf_mapping_save($rdf_mapping);
    }
}

Functions

Title Deprecated Summary
rdf_test_install Implements hook_install().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.