function filefield_paths_schema_alter in File (Field) Paths 7
Same name and namespace in other branches
- 6 filefield_paths.install \filefield_paths_schema_alter()
 
Implements hook_schema_alter().
Parameters
$schema: The system-wide schema
File
- ./
filefield_paths.install, line 14  - Install, update and uninstall functions for the File (Field) Paths module.
 
Code
function filefield_paths_schema_alter(&$schema) {
  $schema['file_managed']['fields']['origname'] = array(
    'description' => 'Original name of the file.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  );
}