You are here

imce_dir_man.install in IMCE Tools 6

Same filename and directory in other branches
  1. 7 imce_dir_man/imce_dir_man.install

File

imce_dir_man/imce_dir_man.install
View source
<?php

function imce_dir_man_install() {
  drupal_install_schema('imce_dir_man');
}
function imce_dir_man_uninstall() {
  drupal_uninstall_schema('imce_dir_man');
}
function imce_dir_man_schema() {
  $schema['imce_dir_man'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => "User's {users}.uid.",
      ),
      'dir' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => '255',
        'description' => 'Directory path restriction relative to site root',
      ),
    ),
    'primary key' => array(
      'uid',
      'dir',
    ),
  );
  return $schema;
}