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

Contents of /contributions/modules/resource/resource.install

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


Revision 1.1 - (show annotations) (download) (as text)
Fri Mar 14 10:17:44 2008 UTC (20 months, 1 week ago) by arto
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Initial import of the Resource module.

Enables the creation of resource nodes which serve as references to remote
content identified by URIs and published in RDF format.
1 <?php
2 // $Id$
3 /**
4 * resource.install - Resource installation/uninstallation.
5 *
6 * @author Arto Bendiken <http://bendiken.net/>
7 * @copyright Copyright (c) 2007-2008 Arto Bendiken. All rights reserved.
8 * @license GPL <http://creativecommons.org/licenses/GPL/2.0/>
9 * @package resource.module
10 */
11
12 //////////////////////////////////////////////////////////////////////////////
13 // Core API hooks
14
15 /**
16 * Implementation of hook_enable().
17 */
18 function resource_enable() {
19 drupal_set_message(t('Resource module successfully installed. Please review the <a href="@settings">content type settings</a>.', array('@settings' => url('admin/content/node-type/resource'))));
20 }
21
22 /**
23 * Implementation of hook_install().
24 */
25 function resource_install() {
26 rdf_db_create_repository('resource', array('dc:title' => t('Resources'), 'dc:description' => t('Stores metadata for Resource nodes.')));
27 }
28
29 /**
30 * Implementation of hook_uninstall().
31 */
32 function resource_uninstall() {
33 variable_del('node_options_resource');
34 rdf_db_delete_repository('resource');
35 }

  ViewVC Help
Powered by ViewVC 1.1.2