| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
//////////////////////////////////////////////////////////////////////////////
|
| 5 |
// Core API hooks
|
| 6 |
|
| 7 |
/**
|
| 8 |
* Implementation of hook_enable().
|
| 9 |
*/
|
| 10 |
function relations_enable() {
|
| 11 |
drupal_set_message(t('Relations API module successfully installed. Please review the <a href="@settings">available configuration settings</a>.', array('@settings' => url('admin/settings/rdf/relations'))));
|
| 12 |
}
|
| 13 |
|
| 14 |
/**
|
| 15 |
* Implementation of hook_install().
|
| 16 |
*/
|
| 17 |
function relations_install() {
|
| 18 |
module_load_include('inc', 'rdf', 'rdf.db');
|
| 19 |
rdf_db_create_repository('relations', array('dc:title' => t('Relations'), 'dc:description' => t('Stores metadata for the Relations API module.')));
|
| 20 |
}
|
| 21 |
|
| 22 |
/**
|
| 23 |
* Implementation of hook_uninstall().
|
| 24 |
*/
|
| 25 |
function relations_uninstall() {
|
| 26 |
module_load_include('inc', 'rdf', 'rdf.db');
|
| 27 |
rdf_db_delete_repository('relations');
|
| 28 |
}
|