| 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 |
}
|