You are here

function file_entity_schema_alter in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.install \file_entity_schema_alter()
  2. 7.2 file_entity.install \file_entity_schema_alter()

Implements hook_schema_alter().

1 call to file_entity_schema_alter()
file_entity_install in ./file_entity.install
Implements hook_install().

File

./file_entity.install, line 11
Install, update and uninstall functions for the file_entity module.

Code

function file_entity_schema_alter(&$schema) {
  $schema['file_managed']['fields']['type'] = array(
    'description' => 'The type of this file.',
    'type' => 'varchar',
    'length' => 50,
    'not null' => TRUE,
    'default' => '',
  );
  $schema['file_managed']['indexes']['file_type'] = array(
    'type',
  );
}