domain_path.install in Domain Path 6
Same filename and directory in other branches
Install file for Domain Path.
File
domain_path.installView source
<?php
/**
* @file
* Install file for Domain Path.
*/
/**
* Implements hook_install().
*/
function domain_path_install() {
drupal_install_schema('domain_path');
}
/**
* Implements hook_uninstall().
*/
function domain_path_uninstall() {
drupal_uninstall_schema('domain_path');
}
/**
* Implements hook_schema().
*/
function domain_path_schema() {
$schema['domain_path'] = array(
'description' => 'Stores per-domain path data.',
'fields' => array(
'dpid' => array(
'description' => 'Primary key.',
'type' => 'serial',
'not null' => TRUE,
),
'domain_id' => array(
'description' => 'Domain id for this alias',
'type' => 'int',
'not null' => TRUE,
),
'source' => array(
'description' => 'System path for the alias',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'alias' => array(
'description' => 'Path alias for the domain',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'language' => array(
'description' => 'Language for thie alias.',
'type' => 'varchar',
'length' => '12',
'not null' => TRUE,
'default' => 'und',
),
'entity_type' => array(
'description' => 'Entity type',
'type' => 'varchar',
'length' => '80',
'not null' => FALSE,
),
'entity_id' => array(
'description' => 'Entity id',
'type' => 'int',
'not null' => FALSE,
),
),
'primary key' => array(
'dpid',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
domain_path_install | Implements hook_install(). |
domain_path_schema | Implements hook_schema(). |
domain_path_uninstall | Implements hook_uninstall(). |