You are here

pathauto_i18n.install in Pathauto i18n 7

Same filename and directory in other branches
  1. 8 pathauto_i18n.install

Install, update and uninstall functions for the Pathauto i18n module.

File

pathauto_i18n.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Pathauto i18n module.
 */

/**
 * Implements hook_schema().
 */
function pathauto_i18n_schema() {
  $schema['pathauto_i18n'] = array(
    'description' => 'Stores entity config for pathauto i18n.',
    'fields' => array(
      'entity_id' => array(
        'description' => 'The entity id this data is attached to.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'entity_type' => array(
        'description' => 'The entity type this data is attached to.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'bundle' => array(
        'description' => 'Bundle to which this row belongs.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'path_status' => array(
        'description' => 'Boolean indicating turned on pathauto i18n.',
        'type' => 'int',
        'not null' => FALSE,
        'default' => 0,
        'size' => 'tiny',
      ),
    ),
    'primary key' => array(
      'entity_id',
      'entity_type',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
pathauto_i18n_schema Implements hook_schema().