/[drupal]/contributions/modules/relations/relations.install
ViewVC logotype

Contents of /contributions/modules/relations/relations.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Jun 30 10:37:02 2009 UTC (4 months, 4 weeks ago) by arto
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Changes since 1.1: +2 -0 lines
File MIME type: text/x-php
#360295 by drewish: Ensured the RDF API rdf_db_create_repository() function is available.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2