Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1053391292
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (44 sloc) 1.098 kb
<?php
// $Id$
/**
* @file
* Hook implementations for install and uninstall of the dpremote module
*/
function dpremote_install() {
module_load_include('module', 'datapoint');
datapoint_add_source_type(array(
'type' => 'dpremote_project_releases',
'name' => 'Project releases',
'content_type' => '',
'parser' => 'datapoint_project',
'managed' => TRUE,
));
drupal_install_schema('dpremote');
}
function dpremote_uninstall() {
drupal_uninstall_schema('dpremote');
}
function dpremote_schema() {
$schema = array();
$schema['dpremote_servers'] = array(
'description' => t('Known remote servers'),
'fields' => array(
'url' => array(
'description' => t('The base url'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'name' => array(
'description' => t('The server name'),
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array('url'),
);
return $schema;
}
Jump to Line
Something went wrong with that request. Please try again.